Revision: 6928
http://playerstage.svn.sourceforge.net/playerstage/?rev=6928&view=rev
Author: jeremy_asher
Date: 2008-07-25 21:53:39 +0000 (Fri, 25 Jul 2008)
Log Message:
-----------
stage: fixed blobfinder visualization after previous changes
Modified Paths:
--------------
code/stage/trunk/libstage/model_blobfinder.cc
code/stage/trunk/libstageplugin/p_blobfinder.cc
Modified: code/stage/trunk/libstage/model_blobfinder.cc
===================================================================
--- code/stage/trunk/libstage/model_blobfinder.cc 2008-07-25 21:27:59 UTC
(rev 6927)
+++ code/stage/trunk/libstage/model_blobfinder.cc 2008-07-25 21:53:39 UTC
(rev 6928)
@@ -327,10 +327,10 @@
// return to global rotation frame
stg_pose_t gpose = GetGlobalPose();
- glRotatef( 180 + rtod(-gpose.a),0,0,1 );
+ glRotatef( rtod(-gpose.a),0,0,1 );
// place the "screen" a little away from the robot
- glTranslatef( 0.5, 0.5, 1.0 );
+ glTranslatef( -3.0, -2.0, 1.0 );
// convert blob pixels to meters scale - arbitrary
glScalef( 0.025, 0.025, 1 );
Modified: code/stage/trunk/libstageplugin/p_blobfinder.cc
===================================================================
--- code/stage/trunk/libstageplugin/p_blobfinder.cc 2008-07-25 21:27:59 UTC
(rev 6927)
+++ code/stage/trunk/libstageplugin/p_blobfinder.cc 2008-07-25 21:53:39 UTC
(rev 6928)
@@ -73,7 +73,7 @@
for( b=0; b<bcount; b++ )
{
// useful debug - leave in
-
+ /*
cout << "blob "
<< " left: " << blobs[b].left
<< " right: " << blobs[b].right
@@ -81,8 +81,8 @@
<< " bottom: " << blobs[b].bottom
<< " color: " << hex << blobs[b].color << dec
<< endl;
+ */
-
int dx = blobs[b].right - blobs[b].left;
int dy = blobs[b].top - blobs[b].bottom;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit