-
Notifications
You must be signed in to change notification settings - Fork 104
Description
Hi everyone,
I'm looking to create a controllable LED on a robot in the SubT simulator with Ignition Dome.
I am looking for the LED to have the following functionality:
- Controllable on/off for the LED via ros/cpp
- A way to set the colour of the LED via ros/cpp
Does anyone have any advice on how to go about doing this? If any of the teams have done this in the past, please do let me know how you went about it.
Further Information
I am currently looking at editing the Marble Husky model (sensor config 1) to include this, potentially by editing the SDF file & the vehicle topics launch file:
SDF FIle - https://github.com/osrf/subt/blob/master/submitted_models/marble_husky_sensor_config_1/model.sdf
Vehicle Topics Launch File - https://github.com/osrf/subt/blob/master/submitted_models/marble_husky_sensor_config_1/launch/vehicle_topics.launch
I was thinking if there was a way to overcome the cross compatibility issue, I could integrate this gazebo classic plugin, but that looks tricky: https://classic.gazebosim.org/tutorials?tut=led_plugin&cat=plugins
Things I have already tried:
I tried editing the DAE file for the spotlight that the model already has, but it didn't change the colour and even if it did, it wouldn't be controllable like I need it - https://github.com/osrf/subt/blob/master/submitted_models/marble_husky_sensor_config_1/meshes/spotlight.dae
I have found a number of existing models use different lights as part of the model, so perhaps one of these might help too:
Two LEDS (multiple models use this) - https://github.com/osrf/subt/blob/master/submitted_models/marble_spot_sensor_config_1/urdf/lights.xacro
Hexapod LED stripe - https://github.com/osrf/subt/blob/master/submitted_models/ctu_cras_norlab_lily_sensor_config_1/urdf/lights.xacro
Absolem light (only 1 I think): https://github.com/osrf/subt/blob/master/submitted_models/marble_spot_sensor_config_1/urdf/lights.xacro
Different light on spot: https://github.com/osrf/subt/blob/master/submitted_models/csiro_data61_spot_sensor_config_1/urdf/nav_backpack/sensors/light.xacro
Apologies for the tags (not had much open source experience), I've removed them.