Gazebo | Ignition | Community
Ask Your Question
0

Connect a lidar sensor to a robot and get data to ROS

asked 2020-09-15 03:31:46 -0500

Meanmachine gravatar image

Hello. I am new to ROS and Gazebo. I am trying to put a 2D lidar sensor in a pre-existing robot in gazebo (i.e. turtlebot) and get the data from the sensor in ROS. So far, I followed the guided tutorials and I managed to create a custom velodyne sensor. Now I want to get the data in ROS and then put the sensor on the robot which will be also controlled by ROS. I feel a bit lost with all stand-alone tutorials about connecting it to ros. I don't know where I should start (inserting the robot, connect the sensor to ROS-and which method is more preferable, should I create the plugin directory into my catkin workspace? how can I use the ros-gazebo packages?). Can you please point me to a direction or guide me through a process ?

I'm using Ubuntu 16.04, ROS-kinetic and the pre-installed Gazebo 7.

Thank you in advance !

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-09-15 22:57:31 -0500

PKGosal gravatar image

updated 2020-09-15 22:59:10 -0500

The following steps may be helpful:

  1. In the URDF file of the robot, create a link/joint for the senso
  2. Add a gazebo reference tag, that will allow you to add the plugin for the sensor

Note: There are several plugins already available for commonly used sensors. If the existing plugins work for your case, then the tutorial below should be very helpful.

Check out the sensor plugin section at the link below. [http://gazebosim.org/tutorials?tut=ro...]

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

2 followers

Stats

Asked: 2020-09-15 03:31:46 -0500

Seen: 16 times

Last updated: Sep 15