Add a light to Turtlebot
How can I add a structure indicating head-lamp to Turtlebot and then attached point/spot light to that structure? I am using ROS kinetic and Gazebo 7.
How can I add a structure indicating head-lamp to Turtlebot and then attached point/spot light to that structure? I am using ROS kinetic and Gazebo 7.
You can use the AttachLightPlugin
, here's an example.
Thanks. I am already using it. I was able to build it successfully and test it. But I have two questions (1) How to dynamically turn off/on the green spot light? (2) How such a light could be integrated to Turtlebot since I can't find Turtlebot description in SDF format, therefore, can't attach a light to a link?
To turn lights on/off, you can send a Gazebo message to ~/visual altering its emissive values. An example here: https://bitbucket.org/osrf/gazebo/src/4f8e0728b55fd2827cbab3395d792bef218a5aae/examples/stand_alone/stop_light/stop_light.cc?at=citysim&fileviewer=file-view-default
As for performance, you could wait for the next Gazebo 7 release ;) https://bitbucket.org/osrf/gazebo/pull-requests/2807/add-light-as-child-of-link/diff
Yes, memory leak relates to performance. By "visual LEDs" I mean changing the emissive color of a visual like this, so it's not a light and will not affect objects around it: https://twitter.com/chapulinaBR/status/920436448024596481. Sure, the PR will first need to land on gz7 and then be ported to gz8.
Asked: 2017-10-03 12:31:36 -0600
Seen: 2,091 times
Last updated: Oct 03 '17
Connect a lidar sensor to a robot and get data to ROS
Adding light source as a model in Groovy-Gazebo [closed]
turtlebot sim crashes on subscribing to any topic
Material Properties for lighting of image plane
How to turn off visual markers (blue lines) from turtlebot?
Spawning a light source in gazebo world
gazebo rendering light issue; since ubuntu update
set light properties through ros topic or service interface?