-
Notifications
You must be signed in to change notification settings - Fork 195
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
Alternative implementation of multi-group trajectories and update motoman error handling #488
base: kinetic-devel
Are you sure you want to change the base?
Conversation
These changes fix incomplete/broken code in the motoman drivers related to synchronized multi-group trajectory goals. These changes allow multi-group goals to be sent and correctly handled.
This switches how the joint trajectory action detects the end of a trajectory. Previously, we would wait for the robot to be in-motion then exit being in-motion. However, this caused stalling issues for short trajectories. Now, we wait until the time expected to complete the trajectory has passed and the robot is not in motion.
Add functionality in the motoman driver stack for the trajectory action server to abort the active trajectory when a motoros error is thrown.
Add a custom shutdown handler to the motoman joint streaming node. The handler will cancel any active trajectories and disable the arm in the event of a system shutdown.
Thanks for the PR. It includes some interesting ideas. c4533d3 seems to mimic ros-industrial/industrial_core#271, but makes it Motoman-specific. d1cd81a is a nice idea, but on my test setup (YRC1000, 4 groups) results in all goals to always be
f513b1e is also a nice idea. I'm wondering though, similar code is include here: motoman/motoman_driver/src/industrial_robot_client/joint_trajectory_interface.cpp Lines 192 to 196 in 7860ff5
I guess you observed that dtor to not always successfully disable trajectory mode? |
I suspect something more subtle is going on here. Do the trajectories succeed on
Correct - I'm not sure what was going on here, but adding the explicit sigterm handler was more reliable in shutting down the arm after killing the rosnode. |
This has been tested on our setup on a YRC1000 with 4 robot groups. Thanks for all your hard work! |
Wow, thanks for the hardware testing! |
Changes required to reliably control and execute joint trajectories on our multigroup system. This was tested and verified with a Yaskawa multi-group robot with one GP7 arm attached to a rail. This was not tested on a single-group robot to verify backwards compatibility - we suspect a small amount of work is still required to make these changes compatible with a single-group robot.
Changes were motivated by discussion in #450
Notable updates include: