(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

Navigation Using Rviz Tutorial

Description: Navigate using the Oculus Prime Robot, Rviz, and the Oculusprime_Ros Package

Tutorial Level: BEGINNER

First, start up the Oculus Prime Server Application (if it isn’t running already). Connect remotely to the robot desktop via a VNC client. Open a terminal window, cd into to your oculusPrime directory, and enter:

./oculusprime.sh

Then, open another terminal on the robot (remotely via 'ssh' or thru VNC) and enter:

roslaunch oculusprime globalpath_follow.launch

This will launch ROS and the navigation stack on the robot. Now switch to your workstation and enter:

rosrun rviz rviz -d `rospack find oculusprime`/dwa_nav.rviz

If everything started up OK, your Rviz window should be showing something like this:

http://www.xaxxon.com/images/documentation/oculus_prime_rviz_initial_pose.jpg

Even if the robot is already in the correct pose on the map, the widely spread mass of green arrows indicates that AMCL doesn’t have a great fix on where it is yet. If the robot is docked, you’re now going to need to use the web-browser client to un-dock and move into a relatively open space.

Now, using the ‘2D Pose Estimate’ tool in Rviz, place an arrow in the approximate position and direction (pose) where the robot is on the map. The robot should react by doing a full circle in place, and the pose array should be much more tightly packed cloud of green arrows.

Finally, you can set a destination pose using the ‘2D Nav Goal’ tool in Rviz. Place the arrow on the map where you want the robot to go, and it should proceed to navigate there. The image below shows the robot proceeding to a goal (represented by a large green arrow) following the generated global path (thin green line).

http://www.xaxxon.com/images/documentation/oculus_prime_rviz_set_destination.jpg

Wiki: oculusprime_ros/navigation_rviz_tutorial (last edited 2016-03-18 08:49:39 by Colin Adamson)