How to use plugins for sensors?

asked 2019-03-20 07:06:16 -0500

archee8 gravatar image

updated 2019-03-20 12:09:12 -0500

Carlos Agüero gravatar image

Hello! I want to use RFIDSensor.hh RFIDSensorPrivate.hh and RFIDTag. I create pkg with deps gazebo_ros, gazebo_plugins, roscpp. In directory /include moved *.hh files and in /src moved *.cc files.image descriptionSource -

CMakeLists.txt image description package.xml image description

edit retag flag offensive close merge delete


You are not supposed to copy the source code into your own package. When you install gazebo, you already have an access to those sensors. You just attach it to your robot in the URDF or the SDF description (depending on what you use). For SDF case you can look into this tutorial it describes the contact sensor, but all the sensors are used the same way, just change the names.

kumpakri gravatar imagekumpakri ( 2019-03-21 03:44:11 -0500 )edit

Thank you!

archee8 gravatar imagearchee8 ( 2019-03-22 14:18:26 -0500 )edit

I try add type='rfid' but when i call gz topic -l , i don`t see 'rfid' topic.

archee8 gravatar imagearchee8 ( 2019-03-22 15:03:12 -0500 )edit