-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] [WIP] Add feature to reboot using a service call #19
base: master
Are you sure you want to change the base?
Conversation
|
||
dynamixel::StatusPacket<Protocol2> status; | ||
// Send reboot | ||
dynamixel::instructions::Reboot<Protocol2> packet(id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this line and also line 418, I believe that we should use the template parameter Protocol
.
_hardware_interface->read_joints(); | ||
dynamixel_access_mutex.unlock(); | ||
|
||
// Control | ||
// let the controller compute the new command (via the controller manager) | ||
_controller_manager->update(ros::Time::now(), _elapsed_time); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should not call this method either when the mutex is already locked by the thread doing the reboot.
@@ -117,15 +138,19 @@ namespace dynamixel { | |||
|
|||
// Input | |||
// get the hardware's state | |||
dynamixel_access_mutex.lock(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that it would be preferable to use trylock (but have little experience in threads) because we would not want the warning messages that are generated when this method takes too much time to execute.
Thanks for this RFC and work!
|
I've added a feature to reboot some of the servos using the a service. This is a WIP/RFC with some of the things I'm not sure about being:
_msgs
repository that only contains message and service files.ServoID.msg
./reboot
. Maybe putting it in/dynamixel_control_hw/reboot
is better?set_torque_enable
be removed?sleep(0.1)
appropriateI'd be happy to know you guys' thoughts/suggestions!