dynamixel_hardware
dynamixel_hardware copied to clipboard
Delayed Read Write Calls till after `on_activate()` is completed
In this PR
- Fixed #88 (refer abab217f3d3c2a7a3618062cf50228268b6caab1)
- Added bool variable that exits out of the read and write calls till on_activate is completed
How was this tested?
- Tested on Humble with XC330-M288T in Position Control Mode at 200HZ with JTC
@ijnek can you have a look at this?
I found a bug with this code. It doe solve the Port in Use bug. But it also means we can't read the current joint position when we active the plugin. As the reset_command()
is called before activated_ = true;
is set. Hence we can't read any values from the servo motor. This is the output from the this: joints_[i].command.position = joints_[i].state.position;
joints_[i].state.position: nan
I found a bug with this code. It doe solve the Port in Use bug. But it also means we can't read the current joint position when we active the plugin. As the
reset_command()
is called beforeactivated_ = true;
is set. Hence we can't read any values from the servo motor. This is the output from the this:joints_[i].command.position = joints_[i].state.position;
joints_[i].state.position: nan
aah, missed that. do you have any solution for the same?