How can I add a box in Rviz from python?
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
Asked by Onintza on 2019-02-09 07:34:23 UTC
Answers
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.
Asked by fvd on 2020-03-02 06:13:26 UTC
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.
Asked by macrot51 on 2019-08-16 03:47:43 UTC