Revision: 6686 http://playerstage.svn.sourceforge.net/playerstage/?rev=6686&view=rev Author: alexcb Date: 2008-06-25 14:05:58 -0700 (Wed, 25 Jun 2008)
Log Message: ----------- fixed camera yaw offset bug Modified Paths: -------------- code/stage/trunk/libstage/model_camera.cc Modified: code/stage/trunk/libstage/model_camera.cc =================================================================== --- code/stage/trunk/libstage/model_camera.cc 2008-06-25 20:09:36 UTC (rev 6685) +++ code/stage/trunk/libstage/model_camera.cc 2008-06-25 21:05:58 UTC (rev 6686) @@ -142,7 +142,7 @@ _camera.SetProjection(); //TODO reposition the camera so it isn't inside the model ( or don't draw the parent when calling renderframe ) _camera.setPose( parent->GetGlobalPose().x, parent->GetGlobalPose().y, CAMERA_HEIGHT ); //TODO use something smarter than a #define - make it configurable - _camera.setYaw( rtod( parent->GetGlobalPose().a ) - 90.0 + _yaw_offset ); //-90.0 points the camera infront of the robot instead of pointing right + _camera.setYaw( rtod( parent->GetGlobalPose().a ) - 90.0 - _yaw_offset ); //-90.0 points the camera infront of the robot instead of pointing right _camera.Draw(); _canvas->renderFrame( true ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit