Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On ROS for Robotics Programming

You're reading from  Hands-On ROS for Robotics Programming

Product type Book
Published in Feb 2020
Publisher Packt
ISBN-13 9781838551308
Pages 432 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Bernardo Ronquillo Japón Bernardo Ronquillo Japón
Profile icon Bernardo Ronquillo Japón

Table of Contents (19) Chapters

Preface Section 1: Physical Robot Assembly and Testing
Assembling the Robot Unit Testing of GoPiGo3 Getting Started with ROS Section 2: Robot Simulation with Gazebo
Creating the Virtual Two-Wheeled ROS Robot Simulating Robot Behavior with Gazebo Section 3: Autonomous Navigation Using SLAM
Programming in ROS - Commands and Tools Robot Control and Simulation Virtual SLAM and Navigation Using Gazebo SLAM for Robot Navigation Section 4: Adaptive Robot Behavior Using Machine Learning
Applying Machine Learning in Robotics Machine Learning with OpenAI Gym Achieve a Goal through Reinforcement Learning Assessment Other Books You May Enjoy

Getting started with RViz for robot visualization

RViz provides a configurable GUI so that you can display specific information about the robot.

To make sure RViz loads a default configuration, place the default.rviz file inside the ~/.rviz/ folder. You will find Chapter4_RViz_basics in this folder.

You can open the RViz GUI with the following commands:

T1 $ roscore
T2 $ rviz

The T2 command, rviz, is an abbreviation of the official $ rosrun rviz rviz declaration, where first rviz refers to the package and the second refers to the node with the same name.

At the moment, the RViz window will be empty, so it will only show a grid at the floor level. In the next section, we will teach you how to build the robot model and get ready to visualize it. Once you've launched it, you will see a window similar to the one shown in the following screenshot:

If you look carefully at the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}