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

I am making a mapping system for a minesweeper Robot

asked 2022-02-19 04:20:29 -0500

Yousef Hannora gravatar image

updated 2022-02-20 19:12:19 -0500

lucasw gravatar image

I want to know How can I use ROS Rviz to visualize a robot's movement; like drawing lines to show the distance moved by the robot. and shapes like squares to show the place of detected objects?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-02-19 04:34:07 -0500

Hey, You can use [RViz Markers] (http://wiki.ros.org/rviz/DisplayTypes...) (for both C++ and Python). There are many types that you could use to describe the shape of the object detected as well. You just have to subscribe to the detected object's state (position, orientation or velocity...) and then publish an RViz marker (arrow, cube, point...) at that state.

edit flag offensive delete link more

Comments

thank you, what about drawing the route the robot walked. and I found only C++ code, how can I do it with python?

Yousef Hannora gravatar image Yousef Hannora  ( 2022-02-20 12:15:08 -0500 )edit

Please have a look at this simple python example that i found on github. Github link

seif_seghiri gravatar image seif_seghiri  ( 2022-02-21 03:20:19 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-02-19 04:20:29 -0500

Seen: 76 times

Last updated: Feb 19 '22