DynamixelIO(self, device_name='/dev/ttyUSB0', baud_rate=57600)
Creates communication handler for Dynamixel motors
DynamixelIO.write_control_table(protocol, dxl_id, value, address, size)
Writes a specified value to a given address in the control table
DynamixelIO.read_control_table(protocol, dxl_id, address, size)
Returns the held value from a given address in the control table
DynamixelIO.new_motor(dxl_id,
json_file,
protocol=2,
control_table_protocol=None)
Returns a new DynamixelMotor object of a given protocol with a given control table
DynamixelIO.new_ax12(dxl_id)
Returns a new DynamixelMotor object for an AX12
DynamixelIO.new_mx12(dxl_id)
Returns a new DynamixelMotor object for an MX12
DynamixelIO.new_mx28(dxl_id, protocol=1, control_table_protocol=None)
Returns a new DynamixelMotor object for an MX28
DynamixelIO.new_mx64(dxl_id, protocol=1, control_table_protocol=None)
Returns a new DynamixelMotor object for an MX64
DynamixelIO.new_mx106(dxl_id, protocol=1, control_table_protocol=None)
Returns a new DynamixelMotor object for an MX106
DynamixelIO.new_ax12_1(*args, **kwargs)
Returns a new DynamixelMotor object for an AX12
.. deprecated:: 0.8 This will be removed in 1.0. Use new_ax12() instead
DynamixelIO.new_mx_2(*args, **kwargs)
Returns a new DynamixelMotor object of a given protocol for an MX series
.. deprecated:: 0.8 This will be removed in 1.0. Use the specific new motor function instead
DynamixelIO.new_mx12_1(*args, **kwargs)
Returns a new DynamixelMotor object for an MX12
.. deprecated:: 0.8 This will be removed in 1.0. Use new_mx12() instead
DynamixelIO.new_mx28_1(*args, **kwargs)
Returns a new DynamixelMotor object for an MX28
.. deprecated:: 0.8 This will be removed in 1.0. Use new_mx28() instead
DynamixelIO.new_mx64_1(*args, **kwargs)
Returns a new DynamixelMotor object for an MX64
.. deprecated:: 0.8 This will be removed in 1.0. Use new_mx64() instead
DynamixelIO.new_mx106_1(*args, **kwargs)
Returns a new DynamixelMotor object for an MX106
.. deprecated:: 0.8 This will be removed in 1.0. Use new_mx106() instead
DynamixelMotor(self,
dxl_id,
dxl_io,
json_file,
protocol=1,
control_table_protocol=None)
Creates the basis of individual motor objects
DynamixelMotor.write_control_table(data_name, value)
Writes a value to a control table area of a specific name
DynamixelMotor.read_control_table(data_name)
Reads the value from a control table area of a specific name
DynamixelMotor.set_velocity_mode(goal_current=None)
Sets the motor to run in velocity (wheel) mode and sets the goal current if provided
DynamixelMotor.set_position_mode(min_limit=None,
max_limit=None,
goal_current=None)
Sets the motor to run in position (joint) mode and sets the goal current if provided. If position limits are not specified, the full range of motion is used instead
DynamixelMotor.set_extended_position_mode(goal_current=None)
Sets the motor to run in extended position (multi-turn) mode
DynamixelMotor.set_velocity(velocity)
Sets the goal velocity of the motor
DynamixelMotor.set_acceleration(acceleration)
Sets the goal acceleration of the motor
DynamixelMotor.set_position(position)
Sets the goal position of the motor
DynamixelMotor.set_angle(angle)
Sets the goal position of the motor with a given angle in degrees
DynamixelMotor.get_position()
Returns the motor position
DynamixelMotor.get_angle()
Returns the motor position as an angle in degrees
DynamixelMotor.get_current()
Returns the current motor load
DynamixelMotor.torque_enable()
Enables motor torque
DynamixelMotor.torque_disable()
Disables motor torque