Skip to Content
Hands-On ROS for Robotics Programming
book

Hands-On ROS for Robotics Programming

by Bernardo Ronquillo Japón
February 2020
Intermediate to advanced
432 pages
10h 50m
English
Packt Publishing
Content preview from Hands-On ROS for Robotics Programming

Simulating the camera

Follow these steps for the simulation:

  1. Let's first place the robot in Gazebo the same way we did in the previous chapter and enable remote control with the keyboard:
T1 $ roslaunch virtual_slam gopigo3_basic_world.launch T2 $ rosrun key_teleop key_teleop.py /key_vel:=/cmd_vel

key_teleop allows you to remotely control the GoPiGo3 with the arrow keys of your keyboard.

  1. Now, launch a node from the image_view package that comes preinstalled with ROS:
T3 $ rosrun image_view image_view image:=/gopigo/camera1/image_raw

We are remapping the image topic so that the node takes its data from the camera node topic, /gopigo/camera1/image_raw. This topic is defined in the preceding snippet of the camera controller plugin with ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering ROS for Robotics Programming

Mastering ROS for Robotics Programming

Lentin Joseph
ROS Robotics By Example - Second Edition

ROS Robotics By Example - Second Edition

Lentin Joseph, Carol Fairchild, Dr. Thomas L. Harman

Publisher Resources

ISBN: 9781838551308Supplemental Content