Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why would you want to start rviz from inside a python file at all?

It's hard to tell if that fits your functionality, but maybe you can use a ros launchfile.

You could then launch your executable as well as the other launchfile like this:

    <include file="$(find robot)/launch/demo.launch"/>
    <node name="mynode" pkg="mypkg" type="pythonscipt />

To get this to work you need to define "pythonscript" as an executable in your CMakeList.txt of course.