Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Create a completely new sensor type

I want to create a Doppler Velocity Log (DVL) sensor that would simply contain 4 RaySensor and a Pose element. In every tutorial that I saw about SensorPlugins, people used existing sensors and extended them. Is it possible to create a completely new sensor type ( <sensor type="dvl" name="super_name"> ... </sensor> )and add it to gazebo instead of using an existing sensor type and extending it? Google doesn't help me to answer this question unfortunately

Assuming that it is possible to create a new Sensor Type, is it possible to create RaySensor objects directly from a .cpp file instead of having to create them with an sdf file? If I look at the documentation for RaySensor, it seems that we can only define the value of some attributes of a RaySensor (like the ray counts or the min-max ranges for example that only have getters but no setters) by using the RaySensor::load(...) function. Isn't there any other possibility to create a RaySensor object directly in c++ and passing the ray-counts and some other value in a constructor?

Create a completely new sensor type

I want to create a Doppler Velocity Log (DVL) sensor that would simply contain 4 RaySensor and a Pose element. In every tutorial that I saw about SensorPlugins, people used existing sensors and extended them. Is it possible to create a completely new sensor type ( <sensor type="dvl" name="super_name"> ... </sensor> )and add it to gazebo instead of using an existing sensor type and extending it? Google doesn't help me to answer this question unfortunately

Assuming that it is possible to create a new Sensor Type, is it possible to create RaySensor objects directly from a .cpp file instead of having to create them with an sdf file? If I look at the documentation for RaySensor, it seems that we can only define the value of some attributes of a RaySensor (like the ray counts or the min-max ranges for example that only have getters but no setters) by using the RaySensor::load(...) function. Isn't there any other possibility to create a RaySensor object directly in c++ and passing the ray-counts and some other value in a constructor?