Colorizing scene objects?

178 views
Skip to first unread message

Patrick Goebel

unread,
May 28, 2013, 9:59:18 PM5/28/13
to moveit...@googlegroups.com
Is it possible to assign different RViz colors to different scene
objects? I noticed that even when I import meshes into the scene, they
all get the same color that is set under "Scene Geometry->Scene Color"
in the MotionPlanning display.

--patrick

Michael Ferguson

unread,
May 29, 2013, 1:57:40 AM5/29/13
to Patrick Goebel, moveit...@googlegroups.com
I don't think this is currently possible, but I'd give a big thumbs up to making it possible in the future.

-Fergs

Ioan Sucan

unread,
May 29, 2013, 4:27:01 AM5/29/13
to Patrick Goebel, moveit...@googlegroups.com
Hello Patrick,

This is not possible in the Rviz plugin itself. However, each object has a color associated to it (optionally), in the Planning Scene message. This is of use only if you publish the message yourself.
What needs to be done is adding a color picker to the rviz plugin and calling setObjectColor() on the maintained planning scene.
Please assign a feature request on moveit_ros; this should be easy to add; if anyone feels like adding this in, I'd be happy to merge it :)


Ioan

Patrick Goebel

unread,
May 29, 2013, 9:30:53 AM5/29/13
to Ioan Sucan, moveit...@googlegroups.com
OK thanks--I've added a feature request here.

--patrick
Reply all
Reply to author
Forward
0 new messages