qbrobotics_research_commands.h
Go to the documentation of this file.
1 /***
2  * Software License Agreement: BSD 3-Clause License
3  *
4  * Copyright (c) 2015-2021, qbrobotics®
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
8  * following conditions are met:
9  *
10  * * Redistributions of source code must retain the above copyright notice, this list of conditions and the
11  * following disclaimer.
12  *
13  * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
14  * following disclaimer in the documentation and/or other materials provided with the distribution.
15  *
16  * * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
17  * products derived from this software without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
20  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
25  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  */
27 
28 #ifndef QBROBOTICS_DRIVER_QBROBOTICS_RESEARCH_COMMANDS_H
29 #define QBROBOTICS_DRIVER_QBROBOTICS_RESEARCH_COMMANDS_H
30 
31 #define API_VERSION "7.1.0"
32 
33 #define PARAM_BYTE_SLOT 50 // Number of bytes reserved to param's information
34 #define PARAM_MENU_SLOT 150 // Number of bytes reserved to a param menu
35 
38 #define INFO_ALL 0
39 #define INFO_READING 1
40 #define GET_SD_PARAM 2
41 #define GET_SD_DATA 3
42 
46 enum qbmove_command {
47  CMD_PING = 0,
53 
56 
58  CMD_INIT_MEM = 10,
62 
63  CMD_ACTIVATE = 128,
71  CMD_GET_EMG = 136,
74  CMD_GET_ACCEL = 139,
76  CMD_SET_CURR_DIFF = 141,
81  CMD_EXT_DRIVE = 145,
82  CMD_GET_JOYSTICK = 146,
85  CMD_SET_SYNERGIES = 148,
89 };
90 
92 {
99 };
105  PARAM_ID = 0,
115  PARAM_MAX_STEP_POS = 9,
132 };
145 };
146 
154 };
156 
164 };
165 
169 };
170 
173  ACK_OK = 1
174 };
175 
186  TYPE_STRING = 9 // Custom data type
187 };
188 
189 #endif // QBROBOTICS_DRIVER_QBROBOTICS_RESEARCH_COMMANDS_H
CMD_GET_INPUTS
@ CMD_GET_INPUTS
Command for getting reference inputs.
Definition: qbrobotics_research_commands.h:66
CMD_GET_COUNTERS
@ CMD_GET_COUNTERS
Command for asking device's counters, mostly used for debugging sent commands.
Definition: qbrobotics_research_commands.h:73
CONTROL_CURRENT
@ CONTROL_CURRENT
Current control.
Definition: qbrobotics_research_commands.h:160
qbmove_control_mode
qbmove_control_mode
Definition: qbrobotics_research_commands.h:157
CMD_GET_CURRENTS
@ CMD_GET_CURRENTS
Command for asking device's current measurements.
Definition: qbrobotics_research_commands.h:68
CMD_INIT_MEM
@ CMD_INIT_MEM
Initialize the memory with the default values.
Definition: qbrobotics_research_commands.h:58
CMD_SET_INPUTS_ACK
@ CMD_SET_INPUTS_ACK
Command to set the device inputs and return an acknowledgment signal (needed for less comm.
Definition: qbrobotics_research_commands.h:84
PARAM_CONTROL_MODE
@ PARAM_CONTROL_MODE
Choose the kind of control between position control, current control, direct PWM value or current+pos...
Definition: qbrobotics_research_commands.h:109
RESOLUTION_1440
@ RESOLUTION_1440
Definition: qbrobotics_research_commands.h:138
TYPE_DOUBLE
@ TYPE_DOUBLE
Definition: qbrobotics_research_commands.h:185
PARAM_POS_LIMIT_FLAG
@ PARAM_POS_LIMIT_FLAG
Enable/disable position limiting.
Definition: qbrobotics_research_commands.h:113
CONTROL_PWM
@ CONTROL_PWM
Direct PWM value.
Definition: qbrobotics_research_commands.h:159
CURR_AND_POS_CONTROL
@ CURR_AND_POS_CONTROL
Position and current control.
Definition: qbrobotics_research_commands.h:161
qbmove_parameter
qbmove_parameter
Definition: qbrobotics_research_commands.h:104
PARAM_EMG_MAX_VALUE
@ PARAM_EMG_MAX_VALUE
Maximum value of EMG.
Definition: qbrobotics_research_commands.h:123
CMD_GET_MEASUREMENTS
@ CMD_GET_MEASUREMENTS
Command for asking device's position measurements.
Definition: qbrobotics_research_commands.h:67
INPUT_MODE_EMG_PROPORTIONAL
@ INPUT_MODE_EMG_PROPORTIONAL
Use EMG measure to proportionally drive the position of the motor 1.
Definition: qbrobotics_research_commands.h:150
TYPE_UINT8
@ TYPE_UINT8
Definition: qbrobotics_research_commands.h:179
CMD_GET_CURR_AND_MEAS
@ CMD_GET_CURR_AND_MEAS
Command for asking device's measurements and currents.
Definition: qbrobotics_research_commands.h:69
CMD_GET_CYCLE_TIME
@ CMD_GET_CYCLE_TIME
Command to get the device cycle time.
Definition: qbrobotics_research_commands.h:88
CMD_GET_ENCODER_RAW
@ CMD_GET_ENCODER_RAW
Get all encoder raw values.
Definition: qbrobotics_research_commands.h:96
CMD_SET_WATCHDOG
@ CMD_SET_WATCHDOG
Command for setting watchdog timer or disable it.
Definition: qbrobotics_research_commands.h:79
TYPE_UINT32
@ TYPE_UINT32
Definition: qbrobotics_research_commands.h:183
RESOLUTION_23040
@ RESOLUTION_23040
Definition: qbrobotics_research_commands.h:142
PARAM_MOT_HANDLE_RATIO
@ PARAM_MOT_HANDLE_RATIO
Multiplier between handle and motor.
Definition: qbrobotics_research_commands.h:127
CMD_HAND_CALIBRATE
@ CMD_HAND_CALIBRATE
Starts a series of opening and closures of the hand.
Definition: qbrobotics_research_commands.h:61
ACK_OK
@ ACK_OK
Definition: qbrobotics_research_commands.h:173
CMD_SET_VALUE
@ CMD_SET_VALUE
Not Used.
Definition: qbrobotics_research_commands.h:54
TYPE_FLOAT
@ TYPE_FLOAT
Definition: qbrobotics_research_commands.h:184
CMD_PING
@ CMD_PING
Asks for a ping message.
Definition: qbrobotics_research_commands.h:47
PARAM_DL_POS_PID
@ PARAM_DL_POS_PID
Double loop position PID.
Definition: qbrobotics_research_commands.h:130
CMD_SET_POS_STIFF
@ CMD_SET_POS_STIFF
Not used in the softhand firmware.
Definition: qbrobotics_research_commands.h:70
PARAM_CURRENT_LOOKUP
@ PARAM_CURRENT_LOOKUP
Table of values used to calculate an estimated current of the SoftHand.
Definition: qbrobotics_research_commands.h:129
RESOLUTION_11520
@ RESOLUTION_11520
Definition: qbrobotics_research_commands.h:141
RESOLUTION_5760
@ RESOLUTION_5760
Definition: qbrobotics_research_commands.h:140
CMD_GET_IMU_READINGS
@ CMD_GET_IMU_READINGS
Retrieve accelerometers, gyroscopes and magnetometers readings.
Definition: qbrobotics_research_commands.h:93
INPUT_MODE_EMG_FCFS
@ INPUT_MODE_EMG_FCFS
Use 2 EMG. First reaching threshold wins and its value defines hand closure.
Definition: qbrobotics_research_commands.h:152
MAXON_24V
@ MAXON_24V
Definition: qbrobotics_research_commands.h:167
PARAM_MAX_STEP_NEG
@ PARAM_MAX_STEP_NEG
Used to slow down movements for negative values.
Definition: qbrobotics_research_commands.h:118
CMD_BOOTLOADER
@ CMD_BOOTLOADER
Sets the bootloader modality to update the firmware.
Definition: qbrobotics_research_commands.h:57
PARAM_INPUT_MODE
@ PARAM_INPUT_MODE
Input mode.
Definition: qbrobotics_research_commands.h:108
CMD_ACTIVATE
@ CMD_ACTIVATE
Command for activating/deactivating the device.
Definition: qbrobotics_research_commands.h:63
CMD_GET_ADC_CONF
@ CMD_GET_ADC_CONF
Get ADC configuration.
Definition: qbrobotics_research_commands.h:97
TYPE_STRING
@ TYPE_STRING
Definition: qbrobotics_research_commands.h:186
PARAM_POS_LIMIT
@ PARAM_POS_LIMIT
Position limit values | int32 | int32 | int32 | int32 | | INF_LIM_1 | SUP_LIM_1 | INF_LIM_2 | SUP_LIM...
Definition: qbrobotics_research_commands.h:114
PARAM_MEASUREMENT_OFFSET
@ PARAM_MEASUREMENT_OFFSET
Adds a constant offset to the measurements.
Definition: qbrobotics_research_commands.h:111
RESOLUTION_46080
@ RESOLUTION_46080
Definition: qbrobotics_research_commands.h:143
CMD_GET_ADC_RAW
@ CMD_GET_ADC_RAW
Get ADC raw values.
Definition: qbrobotics_research_commands.h:98
CMD_GET_VELOCITIES
@ CMD_GET_VELOCITIES
Command for asking device's velocity measurements.
Definition: qbrobotics_research_commands.h:72
CMD_STORE_DEFAULT_PARAMS
@ CMD_STORE_DEFAULT_PARAMS
Store current parameters as factory parameters.
Definition: qbrobotics_research_commands.h:50
PARAM_EMG_THRESHOLD
@ PARAM_EMG_THRESHOLD
Minimum value to have effect.
Definition: qbrobotics_research_commands.h:122
qbmove_input_mode
qbmove_input_mode
Definition: qbrobotics_research_commands.h:147
CMD_RESTORE_PARAMS
@ CMD_RESTORE_PARAMS
Restore default factory parameters.
Definition: qbrobotics_research_commands.h:51
CMD_SET_BAUDRATE
@ CMD_SET_BAUDRATE
Command for setting baud rate of communication.
Definition: qbrobotics_research_commands.h:80
TYPE_INT32
@ TYPE_INT32
Definition: qbrobotics_research_commands.h:182
CMD_GET_JOYSTICK
@ CMD_GET_JOYSTICK
Command to get the joystick measurements (only for devices driven by a joystick)
Definition: qbrobotics_research_commands.h:83
ACK_ERROR
@ ACK_ERROR
Definition: qbrobotics_research_commands.h:172
CMD_GET_ENCODER_CONF
@ CMD_GET_ENCODER_CONF
Get encoder configuration.
Definition: qbrobotics_research_commands.h:95
CMD_SET_CURR_DIFF
@ CMD_SET_CURR_DIFF
Command used to set current difference modality (only for Cuff device)
Definition: qbrobotics_research_commands.h:77
INPUT_MODE_EMG_FCFS_ADV
@ INPUT_MODE_EMG_FCFS_ADV
Use 2 EMG.
Definition: qbrobotics_research_commands.h:153
CMD_SET_SYNERGIES
@ CMD_SET_SYNERGIES
Command to set the synergies to SoftHand 2.
Definition: qbrobotics_research_commands.h:86
acknowledgment_values
acknowledgment_values
Definition: qbrobotics_research_commands.h:171
CMD_STORE_PARAMS
@ CMD_STORE_PARAMS
Stores all parameters in memory and loads them.
Definition: qbrobotics_research_commands.h:49
CMD_SET_ZEROS
@ CMD_SET_ZEROS
Command for setting the encoders zero position.
Definition: qbrobotics_research_commands.h:48
PARAM_POS_RESOLUTION
@ PARAM_POS_RESOLUTION
Angle resolution for inputs and measurements (used during communication)
Definition: qbrobotics_research_commands.h:119
INPUT_MODE_EMG_INTEGRAL
@ INPUT_MODE_EMG_INTEGRAL
Use 2 EMG signals to drive motor position.
Definition: qbrobotics_research_commands.h:151
CMD_GET_CURR_DIFF
@ CMD_GET_CURR_DIFF
Command for asking device's current difference between a measured one and an estimated one (only for ...
Definition: qbrobotics_research_commands.h:75
TYPE_UINT16
@ TYPE_UINT16
Definition: qbrobotics_research_commands.h:181
CMD_GET_EMG
@ CMD_GET_EMG
Command for asking device's emg sensors measurements.
Definition: qbrobotics_research_commands.h:71
CMD_CALIBRATE
@ CMD_CALIBRATE
Starts the stiffness calibration of the qbMove.
Definition: qbrobotics_research_commands.h:59
INPUT_MODE_ENCODER3
@ INPUT_MODE_ENCODER3
Encoder 3 drives all inputs.
Definition: qbrobotics_research_commands.h:149
CMD_GET_INFO
@ CMD_GET_INFO
Asks for a string of information about.
Definition: qbrobotics_research_commands.h:52
motor_supply_tipe
motor_supply_tipe
Definition: qbrobotics_research_commands.h:166
CMD_EXT_DRIVE
@ CMD_EXT_DRIVE
Command to set the actual measurements as inputs to another device (only for Armslider device)
Definition: qbrobotics_research_commands.h:81
CONTROL_ANGLE
@ CONTROL_ANGLE
Classic position control.
Definition: qbrobotics_research_commands.h:158
PARAM_ID
@ PARAM_ID
Device's ID number.
Definition: qbrobotics_research_commands.h:105
PARAM_DOUBLE_ENC_ON_OFF
@ PARAM_DOUBLE_ENC_ON_OFF
Double Encoder Y/N.
Definition: qbrobotics_research_commands.h:126
CMD_SET_INPUTS
@ CMD_SET_INPUTS
Command for setting reference inputs.
Definition: qbrobotics_research_commands.h:65
TYPE_FLAG
@ TYPE_FLAG
Definition: qbrobotics_research_commands.h:177
TYPE_INT8
@ TYPE_INT8
Definition: qbrobotics_research_commands.h:178
CMD_SET_CUFF_INPUTS
@ CMD_SET_CUFF_INPUTS
Command used to set Cuff device inputs (only for Cuff device)
Definition: qbrobotics_research_commands.h:78
PARAM_MEASUREMENT_MULTIPLIER
@ PARAM_MEASUREMENT_MULTIPLIER
Adds a multiplier to the measurements.
Definition: qbrobotics_research_commands.h:112
RESOLUTION_2880
@ RESOLUTION_2880
Definition: qbrobotics_research_commands.h:139
CMD_GET_VALUE
@ CMD_GET_VALUE
Not Used.
Definition: qbrobotics_research_commands.h:55
DEFLECTION_CONTROL
@ DEFLECTION_CONTROL
Deflection control.
Definition: qbrobotics_research_commands.h:162
PARAM_MOTOR_SUPPLY
@ PARAM_MOTOR_SUPPLY
Motor supply voltage of the hand.
Definition: qbrobotics_research_commands.h:128
PARAM_CURRENT_LIMIT
@ PARAM_CURRENT_LIMIT
Limit for absorbed current.
Definition: qbrobotics_research_commands.h:120
CMD_GET_ACCEL
@ CMD_GET_ACCEL
Command for asking device's acceleration measurements.
Definition: qbrobotics_research_commands.h:74
CMD_GET_ACTIVATE
@ CMD_GET_ACTIVATE
Command for getting device activation state.
Definition: qbrobotics_research_commands.h:64
qbmove_resolution
qbmove_resolution
Definition: qbrobotics_research_commands.h:135
PARAM_MAX_STEP_POS
@ PARAM_MAX_STEP_POS
Used to slow down movements for positive values.
Definition: qbrobotics_research_commands.h:117
PARAM_STARTUP_ACTIVATION
@ PARAM_STARTUP_ACTIVATION
Start up activation byte.
Definition: qbrobotics_research_commands.h:107
additional_command
additional_command
Definition: qbrobotics_research_commands.h:91
CMD_GET_IMU_PARAM
@ CMD_GET_IMU_PARAM
Retrieve and set IMU parameters.
Definition: qbrobotics_research_commands.h:94
PARAM_PID_CURR_CONTROL
@ PARAM_PID_CURR_CONTROL
PID current control.
Definition: qbrobotics_research_commands.h:125
PARAM_EMG_SPEED
@ PARAM_EMG_SPEED
Closure speed when using EMG.
Definition: qbrobotics_research_commands.h:124
INPUT_MODE_EXTERNAL
@ INPUT_MODE_EXTERNAL
References through external commands (default)
Definition: qbrobotics_research_commands.h:148
data_types
data_types
Definition: qbrobotics_research_commands.h:176
DEFL_CURRENT_CONTROL
@ DEFL_CURRENT_CONTROL
Deflection and current control.
Definition: qbrobotics_research_commands.h:163
TYPE_INT16
@ TYPE_INT16
Definition: qbrobotics_research_commands.h:180
MAXON_12V
@ MAXON_12V
Definition: qbrobotics_research_commands.h:168
CMD_GET_PARAM_LIST
@ CMD_GET_PARAM_LIST
Command to get the parameters list or to set a defined value chosen by the use.
Definition: qbrobotics_research_commands.h:60
PARAM_EMG_CALIB_FLAG
@ PARAM_EMG_CALIB_FLAG
Enable calibration on startup.
Definition: qbrobotics_research_commands.h:121
RESOLUTION_92160
@ RESOLUTION_92160
Definition: qbrobotics_research_commands.h:144
CMD_GET_SYNERGIES
@ CMD_GET_SYNERGIES
Command to get the synergies of SoftHand 2.
Definition: qbrobotics_research_commands.h:87
RESOLUTION_360
@ RESOLUTION_360
Definition: qbrobotics_research_commands.h:136
RESOLUTION_720
@ RESOLUTION_720
Definition: qbrobotics_research_commands.h:137
PARAM_PID_CONTROL
@ PARAM_PID_CONTROL
PID parameters.
Definition: qbrobotics_research_commands.h:106
PARAM_DL_CURR_PID
@ PARAM_DL_CURR_PID
Double loop current PID.
Definition: qbrobotics_research_commands.h:131


qb_device_driver
Author(s): qbrobotics®
autogenerated on Thu Apr 27 2023 02:36:32