sonelu / roboglia

Robotics framework
GNU General Public License v3.0
0 stars 1 forks source link

[BUG] When initialising a Dynamixel device the goal_position should be setup to the present_position #67

Closed sonelu closed 4 years ago

sonelu commented 4 years ago

Describe the bug When the robot is initialised there is a risk of joints jolting suddenly depending on how the initial values are setup for goal_position, etc. To avoid this the goal_position should be set to the current_position before the torque is activated and any sync loop is started. At the moment the registers are initialised with 0 unless there is an explicit initialisation in the robot definition.

To Reproduce I've just broken the fingers of MH4 because the hand was moving so fast and in a trajectory so bad that is hit other parts of the robot.

Expected behavior When robot starts, it should be frozen in the initial position (before startup) and if any Scripts are run afterwards the position will be changed.

Screenshots N/A

Desktop (please complete the following information):

Additional context

sonelu commented 4 years ago

Doesn't have to happen. The Joint initializer will take care of this when updating the joint.