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

Image in rviz using code

asked 2022-10-20 16:40:42 -0500

akumar3.1428 gravatar image

I want to write a launch file that can launch RVIZ with image stream by subscribing to a specific topic. Please guide me through this. I can do it manually right now by clicking on the icon and then subscribing to the topic.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2022-10-24 09:50:59 -0500

akumar3.1428 gravatar image

Hi, I resolved this issue, for future users.

    1. Open rviz window.
    2. Go to add and add anything you would like to work with like Motion Planning, Image etc.
    3. Subscribe to the particular topic if needed.
    3. Go to files and save configuration as -> name.rviz 
    4. Open your launch file


  <node type="rviz" name="rviz" pkg="rviz" args="-d $(find package_name)/launch/name.rviz " />
edit flag offensive delete link more
0

answered 2022-10-20 17:15:41 -0500

duck-development gravatar image

you could just save the rviz view/ cfg and load it if you like to start rviz

here is described how to do this https://answers.ros.org/question/2876...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-10-20 16:40:42 -0500

Seen: 79 times

Last updated: Oct 24 '22