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

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

Comments

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
0

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

Question Tools

2 followers

Stats

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

Seen: 973 times

Last updated: Mar 02 '20