Module controller

Source
Expand description

C API for the controller module of the Orbita3D library.

Functionsยง

orbita3d_controller_from_config
Create the Orbita3dController from a config file.
orbita3d_disable_torque
Disable the controller (turn off the motors)
orbita3d_emergency_stop
Send the emergency stop signal to the controller
orbita3d_enable_torque
Enable the controller (turn on the motors)
orbita3d_get_axis_sensor_zeros
Get the raw axis sensor zeros
orbita3d_get_axis_sensors
Get the raw axis sensors values
orbita3d_get_board_state
Get the state of the board (BoardState - u8)
orbita3d_get_board_temperatures
Get the raw board temperatures
orbita3d_get_control_mode
Get the control mode ( CiA402 control mode - u8) : 1 - Profile Position Mode, 3 - Profile Velocity Mode, 4 - Profile Torque Mode
orbita3d_get_current_orientation
Get the current orientation of the platform (quaternion)
orbita3d_get_current_rpy_orientation
Get the current orientation of the platform (roll, pitch, yaw)
orbita3d_get_current_torque
Get the current torque applied by the actuator
orbita3d_get_current_velocity
Get the current velocity of the platform
orbita3d_get_error_codes
Get the error codes
orbita3d_get_motor_temperatures
Get the raw motor temperatures
orbita3d_get_raw_motors_current
Get the raw motor current of the actuators
orbita3d_get_raw_motors_pid_gains
Get the current PID gains of the motors
orbita3d_get_raw_motors_position
Get the raw motor position of the actuators
orbita3d_get_raw_motors_torque_limit
Get the current torque limit of the motors (0 - 1.0)
orbita3d_get_raw_motors_velocity
Get the raw motor velocity of the actuators
orbita3d_get_raw_motors_velocity_limit
Get the current velocity of the motors (0 - 1.0)
orbita3d_get_target_orientation
Get the current target orientation of the platform (quaternion)
orbita3d_get_target_rpy_orientation
Get the current target orientation of the platform (roll, pitch, yaw)
orbita3d_is_torque_on
Check if controller is activated (are the motors on)
orbita3d_set_board_state
Set the state of the board (BoardState - u8)
orbita3d_set_control_mode
Set the control mode ( CiA402 control mode - u8) : 1 - Profile Position Mode, 3 - Profile Velocity Mode, 4 - Profile Torque Mode
orbita3d_set_raw_motors_pid_gains
Set the current PID gains of the motors
orbita3d_set_raw_motors_torque_limit
Set the current torque limit of the motors (0 - 1.0)
orbita3d_set_raw_motors_velocity_limit
Set the current velocity of the motors (0 - 1.0)
orbita3d_set_target_orientation
Set the target orientation of the platform (quaternion)
orbita3d_set_target_orientation_fb
Set the tatget orientation and return the current orientation (quaternion)
orbita3d_set_target_rpy_orientation
Set the target orientation of the platform (roll, pitch, yaw)
orbita3d_set_target_rpy_orientation_fb
Set the tatget orientation and return the current orientation (roll, pitch, yaw)