watonomous.github.io

  1. Software Division
  2. Software Division Home
  3. Infrastructure Group

[ Software Division : RViz Tool ]

Created by [ Rowan Dempster], last modified by [ Charles Zhang] on Jan 14, 2020

RViz is a tool offered by ROS to visualize ROS messages. These can be standard or custom based on different sub teams. This will improve development efficiency for software teams and testing on test track day.

Path Planning

How to run RViz with the Path Planning Pipeline

  1. Ensure your catkin_ws is set up properly with the decision and ros_msgs repositories
  2. Run the path planning pipeline
    • roslaunch path_planning planner_main.launch

    • [The path planning pipeline should start, and the rviz should pop up as a separate window. ]

  3. Run the desired ROS bag in a new terminal window

How to run the Path Planning RViz Manually

Ensure setup of Catkin workspace and have RViz installed.

  1. In ~/catkin_ws/src, clone the repositories for decision and ros_msgs
  2. Run roscore in a new terminal window
    • roscore
  3. Run the RVIZ publisher and any other nodes you need in separate terminal windows
    • rosrun path_planning rviz_publisher
    • rosrun ... (eg `rosrun path_planning local_planner`)
  4. Run RViz in a new terminal window
    • rosrun rviz rviz
  5. Run the desired ROS bag in a new terminal window
    • rosbag play <bag_name> -l

In RViz GUI,

  1. File→Open `catkin_ws/src/decision/rviz_publisher/environment.rviz`

OR:

  1. Change the fixed_frame to world
  2. Change the target_frame to odom
  3. Click Add to add a marker. Click the by_topic tab. Scroll down to marker_array and click it to visualize the marker.
  4. Click the Zero button

Perception

Ensure setup of Catkin workspace and have RViz installed. Perception has a rviz configuration file which is used to launch a preconfigured rviz when you launch perception-vehicle-exp.launch (https://git.uwaterloo.ca/WATonomous/perception-year-2/blob/master/perception-vehicle-exp.launch)

Run `roslaunch perception-vehicle-exp.launch` to launch the perception pipeline (I do not recommend doing this on your own computer as it is very computationally expensive, running neural networks, lidar data processing and rviz)

It is best to run 1 or 2 perception ros nodes at a time on your own computer with the perception-pc.launch file which doesn't automatically launch rviz and visualize detection results using `[rosrun image_view image_view image:=/insert_topic_name`]

From Rosbag Tutorial

  1. In Rviz, to visualize raw LIDAR data, switch the Fixed Frame value to /velodyne and then add the /velodyne_points topic. If you don't what Rviz is or how to use it, see the tutorial here: http://wiki.ros.org/rviz/Tutorials.

Team Requirements

General

Path Planning
What they have

What they want

Perception
What they have

What they want

Processing
What they have

What they want

Process Flow of RViz Tool

Document generated by Confluence on Dec 10, 2021 04:01

Atlassian