Skip to content

Visualize Model car's sensor data

AutoModelCar edited this page Apr 3, 2018 · 5 revisions

You can visualize model car’s sensor Data in your computer with Rviz.

If not already started by the autostart.sh script, you should run the desired packages on the model car first. for example:

 $ roslaunch usb_cam usb_cam-test.launch

Then Connect your computer to the same network as the model car (by default: WiFi "ROS" with password “elfmeter”), and define model car as the ROS_MASTER_URI EnvironmentVariables and the IP of your PC as ROS_IP and ROS_HOSTNAME (can be find out with the command ifconfig).

Now run RViz:

 $ export ROS_IP=192.168.43.175
 $ export ROS_HOSTNAME=192.168.43.175
 $ export ROS_MASTER_URI=http://192.168.43.102:11311/
 $ rviz

In RViz click on the "Add" Button in the Displays section. In the new appearing window choose the right tab "By topic". There should be all visualizable topics of the model car. For example choose "/app/camera/rgb/image_raw/" and "Image" with "compressed" in the selection field.

RViz

You can also save your current view as a config file. If you save it under the path ~/.rviz/default.rviz RViz will load the config by default when started. Otherwise you have to load it by clicking on "File" -> "Open Config". There is one default.rviz we provided for the model car, which you can download and replace it with the ~/.rviz/default.rviz on your PC.

Clone this wiki locally