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

Launch file for rqt_gui in Kinetic

asked 2019-05-27 05:38:22 -0500

someth gravatar image

I have created a perspective in rqt (including rqt_image_view as one of the plugin). And i would like to start the rqt gui with the perspective created before from a launch file. Additionally, to start the rqt_gui with specific image_topic.

How should i compile the launch file for this?

Many Thanks.

edit retag flag offensive close merge delete

Comments

3

I believe this is answered by @edward in #q79141.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-27 06:03:01 -0500 )edit
1

Thank you!, But the reply from Edward only provide a launch file to launch the perspective, is there a way to config the image_topic in the rqt_image_view nested in the rqt?

someth gravatar image someth  ( 2019-07-12 02:56:43 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-24 01:40:06 -0500

Create a launch file if you would like a specific perspective and image topic within ROS Kinetic to launch RQT_GUI with. Here is an example of how you could compile it:

Create a new launch file called RQT.launch.

Add an XML header to the launch file:

Note the package containing your RQT configuration file; let's assume this package is called my_rqt_pkg:

Adjust the environment variable to specify which perspective rqt_gui should follow:

Launch an image viewer node with an appropriate topic image topic (for instance: image_view package).

Close and Save Launch File (rqt.launch file). Insure That Your Package Includes These Components (bundle.include, package.bundle, bundle rqt.launch).

Install the image_view package into your ROS workspace to run image_view and use rqt_gui. To launch it with specific perspective and image topic settings, launch terminal with this command:

Roslaunch's myRQT.launch package

Replace "my_rqt_pkg" with the actual name of your package.

That should do it! Now the rqt_gui should launch with your selected perspective and the image view plugin should display all relevant photos related to a topic.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2019-05-27 05:38:22 -0500

Seen: 861 times

Last updated: Jun 24 '23