Skip to content
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

How to send "cancel the current command" to hrpsys via ROS #622

Closed
130s opened this issue Dec 23, 2014 · 2 comments
Closed

How to send "cancel the current command" to hrpsys via ROS #622

130s opened this issue Dec 23, 2014 · 2 comments

Comments

@130s
Copy link
Contributor

130s commented Dec 23, 2014

I'm not aware if there's a way to cancel the currently-ongoing command.

Is clear the one?
If so, is there a way to call this via ros-bridge (so that the client program doesn't need to import hrpsys_config)?

Related task start-jsk/rtmros_hironx#301 by @DaikiMaekawa

@k-okada
Copy link
Member

k-okada commented Dec 24, 2014

clear will not behave as you expected, It will show some of the motion, but it will not stop immediately , see https://code.google.com/p/hrpsys-base/issues/detail?id=7

please remember all of IDL service is transfer to the ROS service, so you can find /opt/ros/hydro/share/hrpsys_ros_bridge/srv/OpenHRP_SequencePlayerService_clear.srv.

So if you'd like to stop the robot immediately, easiest thing is send current posture (joint angle vector) to the robot with time=0.1 or something, so it will override current sequencer and will stop the motion.
fkanehiro/hrpsys-base#215

if this works, we'll put that code into
https://github.com/start-jsk/rtmros_common/blob/master/hrpsys_ros_bridge/src/HrpsysJointTrajectoryBridge.cpp#L475
so that if you cancel the joint trajectory action, it will stop the motion.

@130s
Copy link
Contributor Author

130s commented Oct 26, 2016

I assume this is implemented in the upstream fkanehiro/hrpsys-base#665

@130s 130s closed this as completed Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants