I'm using Stage 3.0.1. I wrote my own simulator by using by using the
“libstage” C++ library. That is, I do not control Stage devices through
Player. I'm only working with a Stage world-file and don't have a Player
This is described in the manual as one of three ways to use Stage.
“There are three ways to use Stage:
3. Write your own simulator: the "libstage" C++ library makes it easy to
create, run and customize a Stage simulation from inside your own programs.
I've two problems which I encountered during my project.
I like to simulate a robot (or a movable object) which behaviors like a
hospital bed. That is, I have one solid block with two steerable axes. The
bed can rotate around both axes, if you know what I mean. The Position model
lets the robot rotate around the steering axis so I need something else. How
can I modify my model such I get a robot with two steerable axis? Have
someone done such things before? If so, please send me an example of this.
I try to steer the simulation by a joystick. I know this is possible when
using Player and Stage by “playerjoy”. But how to do when I only use
libstage? I couldn't find any class describing a joystick control in
libstage. Is there something in libstage, which one could use to read the
joystick information or do I have create something outside of libstage? Also
here, I would be thankful if someone have done something similar previously
and could send me an example.
Thanks for all help