You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Execute request fails on a real robot in ROS 2 Rolling #2140
I am trying MoveIt 2 with ROS 2 Rolling and facing issues while working with a real robot. Through RViz, the planner generates a trajectory for a valid goal state, however, a subsequent attempt to execute the same trajectory fails with an error stating that the execution was timed out. The controller loads correctly, and I am able to execute well-formed trajectories directly through the joint trajectory server.
Upon investigating the log I found that the default planner is generating a trajectory consisting of multiple waypoints spaced over 0.0 seconds. This is impossible for the controller to achieve, as a result, the execution seems to time out instantly.
Are there any parameters in the config files that need to be changed to overcome this behavior?
ROS Distro: Rolling
OS Version: Ubuntu 22.04
Source built from the main branch
Cyclone DDS
Steps to reproduce
Move the joints to a goal state and plan using RViz, and then execute.
Expected behaviour
The joints should move to the goal state
Actual behaviour
The execution is timed out instantly without any movement
To anyone reading this in the future, if you are moving from an older version of ROS 2 like Galactic, it is likely that you had an older algorithm of Time Parameterization added as the default planning adapter. In the ompl_planning.yaml file, one of the default planning adapters was set as "default_planner_request_adapters/AddTimeParameterization" which is no longer (or not yet) supported in Rolling.
The documentation very briefly mentions switching to Time Optimal Trajectory Generation (TOTG), This can be done by using "default_planner_request_adapters/AddTimeOptimalParameterization". Switching to this updated algorithm resolved this issue for me.
Activity
hello-chintan commentedon Apr 27, 2023
To anyone reading this in the future, if you are moving from an older version of ROS 2 like Galactic, it is likely that you had an older algorithm of Time Parameterization added as the default planning adapter. In the ompl_planning.yaml file, one of the default planning adapters was set as "default_planner_request_adapters/AddTimeParameterization" which is no longer (or not yet) supported in Rolling.
The documentation very briefly mentions switching to Time Optimal Trajectory Generation (TOTG), This can be done by using "default_planner_request_adapters/AddTimeOptimalParameterization". Switching to this updated algorithm resolved this issue for me.
AndyZe commentedon Apr 27, 2023
Good job debugging! I'm sorry I didn't pick up on this sooner. Made an issue to add better error coverage: #2145
On the bright side, your robot will move smoother for switching to TOTG.
hello-chintan commentedon Apr 27, 2023
@AndyZe, you actually helped! Your belated response to this rather old issue was the hint I needed.
Thanks for creating #2145. It would indeed be helpful.