I'm using player2.1.1 and stage3.0.1. I'm trying to load a single robot with pose[21 2 0]. I'm using
localization_origin [0 0 0]
So I expected to get 21, 2, 0 from
std::cout << pp << std::endl;
where pp is a Position2dProxy. Instead i get always 0, 0, 0. If the robot moves values change starting from [0 0 0].
Using pp.SetOdometry(21, 2, 0) doesn't works, the values are immediately rewritten, I suppose by the gps.
Using localization_origin [a b c] with random values I always get the same results!
Using "odm" instead of "gps" i can use pp.SetOdometry() without any problem, but I want "gps"!
I found in raw 174 from libstage/model_position.cc:
if( wf->PropertyExists( wf_entity, keyword ) )
and I think keyword should be "localization_origin" but I'm not sure about this.
My sample project as attachment.
Log in to post a comment.