Forgive the tardy reply, Nate, and thanks for your input with this. I ended up creating another level of indirection for these sorts of things, so I actually replicated my own battery level and mapping for fiducial ids.
Thanks again! --Juan On May 8, 2007, at 8:22 AM, Nate Koenig wrote: > Hello, > > The battery levels are read-only. The starting point and battery > curves are initially set at power on in the world file. A model does > not react to different power levels at this point. For instance, if > the battery level drops to zero, the robot will still move around. > > You can easily change the code in the model to make the battery level > fit your needs. As an example, look in Pioneer2dx for the power_iface. > > A fiducial's id is also set once at power up. It will be much more > difficult to change a fiducial's id dynamically. The gz_fiducial_iface > is used by the fiducial detector (Sick Laser), not by the fiducials. > Therefore the id's that the interface provides are those seen by the > detector. If you want to dynamically change fiducial ID's, then you'll > have to make your own custom interface for each model that has a > fiducial. > > -nate > > On 5/6/07, Juan D. Velasquez <[EMAIL PROTECTED]> wrote: >> Hey everybody, >> >> This might be a silly question, but I can't seem to be able to set/ >> modify the value of certain variables using libgazebo (sans player). >> I would like to be able to change fiducial ids, and battery levels, >> for instance, but haven't been able to do so. When I set these >> values, modifications are only temporary until a new get request is >> made. Are these read-only variables or am I missing something? >> >> I checked the code for a model, such as the Pioneer2DX, and this >> certainly seems possible, as power levels (like any other data) are >> set using the same calls to the gz_interfaces. Is there another call >> that should be made in order to finalize the set requests? >> >> Thanks in advance for any suggestions! >> >> --Juan >> >> --------------------------------------------------------------------- >> ---- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Playerstage-gazebo mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo >> > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Playerstage-gazebo mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Playerstage-gazebo mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
