On 6-Oct-05, at 9:47 AM, Brian Gerkey wrote:

On Oct 3, 2005, at 6:37 PM, Dougie Leung wrote:

I was looking thru the player API's and was trying to look for functions that would change colors to objects in real time, and obviously I couldnt find any coz that would be against the rules of a real world. So I am wondering, if it is possible to have an object which is physically non-existent yet its color is detectable by other clients (thru blob maybe?) ie. color lights and not "blinking lights".

I think that you can instantiate a "model," which is basically a box.  Set various flags to make it visible to a blobfinder, but invisible to laser, sonar, and obstacle detection.  See the model docs:


That should suffice for a fixed color.  I don't know whether you can change colors on the fly.

You can't change colors yet - that will be a new feature soon. Meanwhile a trick that we use here is to have a collection of objects of different colors stashed at some out-of-the-way location, then we move them into place using the simulation interface's "set pose" methods.



This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
Playerstage-users mailing list


Richard Vaughan

School of Computing Science / Simon Fraser University