ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How can I add a box in Rviz from python?

asked 2019-02-09 06:34:23 -0500

Onintza gravatar image

I am in a project to detect obstacles with the robot "Fanuc m10ia" through ROS. I use ubuntu 16.04 and I program from python using the Rviz to visualize it. I need to visualize a box in the moveit and I do not get it. I would greatly appreciate your help

edit retag flag offensive close merge delete


Hello Onintza, I try doing the same thing. Did you find an solution? The basic Move Group Python Interface tutorial with the Panda robot arm is not showing me a box either.

macrot51 gravatar image macrot51  ( 2019-08-16 03:47:43 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-03-02 05:13:26 -0500

fvd gravatar image

I assume you are trying to publish a CollisionObject to the PlanningScene, like in this C++ tutorial.

There is currently no convenience function in the Python planning_scene_interface, but there is an add_box method which may already solve your problem.

If you want to publish other objects to the PlanningScene from Python, have a look at the file's source code, and consider filing a PR.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2019-02-09 06:34:23 -0500

Seen: 818 times

Last updated: Mar 02 '20