moveit_tutorials icon indicating copy to clipboard operation
moveit_tutorials copied to clipboard

display_trajectory_publisher Python - noetic

Open RauchLukas opened this issue 3 years ago • 8 comments

Display a trajectory in RVIz doesn't work

I try to follow the move_group_python_interface_tutorial but after planing a Cartesian Path, the display_trajectory_publisher.publish(display_trajectory) does not show the graph. Instead it just executes the path.

So it looks like the pathplaning just works fine but the Publish to Rviz method broken.

I doublechecked the Trajectory Topic. But cannot fix the issue.

(The Cpp Tutorial works without any complains)

My environment

  • ROS Distro: [noetic]
  • OS Version: e.g. Ubuntu 20.04

RauchLukas avatar Mar 08 '22 15:03 RauchLukas

Thanks for reporting an issue. Because we're a volunteer community, providing a pull request with suggested changes is always welcomed.

welcome[bot] avatar Mar 08 '22 15:03 welcome[bot]

Hi @RauchLukas, The display trajectory publisher relies on rviz being configured to render the same.

I was trying to reproduce the stated issue but the only way I could do that was by manually toggling the "Show Robot Visual" option in the Trajectory display(within the Rviz panel). Everything seems to be working with the default config.
Could you double-check if there were any changes made to your rviz config?

Stephen-Tellis avatar Jun 03 '22 05:06 Stephen-Tellis

I also have the similar issue. With Cpp Tutorial, the trajectory can be shown but with python tutorial, it is not. I have toggled the "show robot visual" option in the Planned path subsection. Does anyone know how to solve this issue? Thanks.

neeyoo avatar Nov 03 '22 10:11 neeyoo

I still cannot confirm the issue. @neeyoo, do you use the latest versions of:

  • panda_moveit_config: b5ce35571832b4165f67f5db51c69581354d2cee
  • moveit_tutorials: 71ab5ee7d4c9db9b67363b6abb385fe33cd02ddb

rhaschke avatar Nov 03 '22 11:11 rhaschke

Hi @rhaschke, I believe I use the latest version, here are the results of using "git log -1" command to check: commit b5ce35571832b4165f67f5db51c69581354d2cee (HEAD -> noetic-devel, origin/noetic-devel, origin/HEAD) commit 71ab5ee7d4c9db9b67363b6abb385fe33cd02ddb (HEAD -> master, origin/master, origin/HEAD)

neeyoo avatar Nov 03 '22 12:11 neeyoo

I also checked the /move_group/display_planned_path topic, there had data published to this topic during the trajectory planning but nothing showed in rviz.

neeyoo avatar Nov 03 '22 12:11 neeyoo

Can you reproduce the issue, when starting from scratch, i.e. closing/finishing all ROS-related processes and then:

roslaunch panda_moveit_config demo.launch
rosrun moveit_tutorials move_group_python_interface_tutorial.py

I hope, you can't. Otherwise, I don't have an idea anymore. If so, maybe you changed your rviz config by prior work? Do you have local changes in the above-mentioned repos, which might explain the problem?

rhaschke avatar Nov 03 '22 13:11 rhaschke

Hi, I am having also the same issue. Any idea?

Lipeng-Robotics avatar Apr 23 '23 04:04 Lipeng-Robotics