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

Writing rviz plugin in python

asked 2016-06-27 10:59:27 -0600

ms0719584 gravatar image

I'm new to ROS and rviz.

I want to write a new tool rviz plugin like the one in this tutorial (adding a new tool on the tool bar), but in python rather than C++. My plugin tool needs to be able to create a line by dragging the mouse across the display in rviz. (I'm just practicing to write a simple tool here.)

I couldn't find any helpful resources or documentations on writing rviz plugin in python, nor a plugin written in python that I can reference on. Does anyone know any tutorial or resources or a sample plugin that might help?

Thanks!

edit retag flag offensive close merge delete

Comments

1

Afaik, it's not possible to write RViz plugins in Python (or at least, not without instantiating a Python interpreter in your C++ plugin class and then using that to run Python (but even that would need bindings of some sort)). Let's hope someone responds to your question that proves me wrong.

gvdhoorn gravatar image gvdhoorn  ( 2016-06-27 16:24:35 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-08-16 09:19:24 -0600

user23fj239 gravatar image

updated 2016-08-16 09:19:46 -0600

There is an old Tutorial on how to do it the other way around. Using import librviz Python bindings to get Rviz`s 3D visualizer and adding your functionality. The tutorial displays a grid of variable line width.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-06-27 10:59:27 -0600

Seen: 2,680 times

Last updated: Aug 16 '16