Adding a laser sensor to V-REP

An important feature of robotic simulators is the possibility to simulate sensors as well as robots. We are now going to add a laser sensor to the Pioneer_3dx. V-REP offers different models of vision, inertial, and proximity sensors. These can be selected from the Model Browser panel in the components | sensors section.

To add a laser to the robot, select and drag and drop Hokuyo_URG_04LX_UG01_ROS into the scene. It's useful to put the sensor as a parent of the robot to be facilitated in its correct positioning on the robot frame. After importing the sensor, the Scene Hierarchy should appear, as show in the following figure:

>
Figure 15: Scene Hierarchy panel with the Pioneer equipped with hokuyo laser

We can ...

Get Mastering ROS for Robotics Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.