How to use plugins for sensors?
Hello! I want to use RFIDSensor.hh RFIDSensorPrivate.hh RFIDSensor.cc and RFIDTag. I create pkg with deps gazeboros, gazeboplugins, roscpp. In directory /include moved *.hh files and in /src moved *.cc files. Source - https://bitbucket.org/osrf/gazebo/src/a479740c0795/gazebo/sensors/?at=default
CMakeLists.txt package.xml
Asked by archee8 on 2019-03-20 07:06:16 UTC
Comments
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 http://gazebosim.org/tutorials?tut=contact_sensor&cat=sensors it describes the contact sensor, but all the sensors are used the same way, just change the names.
Asked by kumpakri on 2019-03-21 03:44:11 UTC
Thank you!
Asked by archee8 on 2019-03-22 14:18:26 UTC
I try add type='rfid' but when i call gz topic -l , i don`t see 'rfid' topic.
Asked by archee8 on 2019-03-22 15:03:12 UTC