ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

add acceleration to 'move_group->stop()' command

asked 2022-05-05 09:59:02 -0500

omeranar1 gravatar image

updated 2022-05-05 09:59:33 -0500

when 'move_group->stop();' command triggered, or when i press 'Stop' button on 'RViz', the joint stops very suddenly.

how can i add acceleration to stop command ?
is that possible ?

thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-05-06 01:40:47 -0500

gvdhoorn gravatar image

updated 2022-05-06 01:42:24 -0500

how can i add acceleration to stop command ? is that possible ?

No, that's not supported.

But, depending on which driver / controller you are using, you can make the stop smoother.

If you're using the wiki/joint_trajectory_controller from ros_control, the stop_trajectory_duration parameter tells the controller how long (in seconds) the trajectory it uses to stop moving should be.

If you set that to a non-zero value, stops should become much less abrupt.

Note that a non-zero value could also have negative consequences, as it will also take longer to stop in cases where you would want the robot to stop immediately (for instance when trying to implement something like "touch sensing").

If you're not using a ros_control-compatible driver, you'd have to see whether your driver supports a similar setting.

edit flag offensive delete link more

Comments

yes i use JointTrajectoryController and stop_trajectory_duration solved my problem. Thank you.

i will also add some protection later, for this reason i will search 'how to change stop_trajectory_duration programmatically.'

omeranar1 gravatar image omeranar1  ( 2022-05-09 05:15:21 -0500 )edit

i will search 'how to change stop_trajectory_duration programmatically.'

that's not supported in the current implementation of the JointTrajectoryController. It's a parameter read only at initialisation time.

gvdhoorn gravatar image gvdhoorn  ( 2022-05-09 05:32:15 -0500 )edit

oh, thank you.
maybe, in emergency i will stop send new angles to joints, then sync angles between hardware and rviz, that may be solve the problem

omeranar1 gravatar image omeranar1  ( 2022-05-09 05:45:00 -0500 )edit

Question Tools

3 followers

Stats

Asked: 2022-05-05 09:59:02 -0500

Seen: 77 times

Last updated: May 06 '22