Light source on Gazebo/Fuerte
Hi there,
I have the following issue related to spawning a light in RosGazebo in Fuerte. I have posted a similar question in the ROS forum but I have been adviced to post it here.
I have took a look to the following discussions, but nothing effective so far:
http://answers.ros.org/question/10648... http://answers.gazebosim.org/question... http://answers.ros.org/question/34829...
I want to do the following:
a ROS node, after receiving a message from someone (e.g. a robot), spawns a light(possibly directional) in a location of the environment. This happens during the execution of the simulation so not at the beginning when the environment is spawned.
We have already done it in the Gazebo stand alone version and with ROS Electric but we need to do it in ROS-Fuerte because we have developed a stack that we would like to exploit also with the turtlebot1 simulator.
It is possible to do that through the GUI but we are not able to that programmatically.
Any solution?
Thanks,
M.
maybe check this out, see if it helps http://answers.gazebosim.org/question/3251/adding-light-source-as-a-model-in-groovy-gazebo/
Thanks Andrei, but I am already involved in that discussion
Andrei, I noticed it works doing that from the gui, so there is for sure a way to do that programmatically. Can you point where I can find the source code of the gui? I am looking for that but I can not find it. If I take a look at that it is likely I can find a way to correctly spawn a light
in which gazebo version you want to do this? because as I saw you want to try it in 1.0.2, which how nate said is deprecated, if in a greater version then there are two examples in those answers which should work, one with the message the other via a visual plugin
unfortunately I do not have time to go with others (when/if there will be support for the turtlebot simulator we are already able to do these things with the latest version of gazebo). In the meanwhile I am trying with the solution you suggested, i.e. via plugin.
but I have a problem, please take a look below