Revision: 7504
http://playerstage.svn.sourceforge.net/playerstage/?rev=7504&view=rev
Author: rtv
Date: 2009-03-17 01:12:04 +0000 (Tue, 17 Mar 2009)
Log Message:
-----------
fixed simple/wander demo
Modified Paths:
--------------
code/stage/trunk/examples/ctrl/wander.cc
code/stage/trunk/worlds/simple.world
Modified: code/stage/trunk/examples/ctrl/wander.cc
===================================================================
--- code/stage/trunk/examples/ctrl/wander.cc 2009-03-17 01:10:29 UTC (rev
7503)
+++ code/stage/trunk/examples/ctrl/wander.cc 2009-03-17 01:12:04 UTC (rev
7504)
@@ -42,7 +42,9 @@
// get the data
uint32_t sample_count=0;
stg_laser_sample_t* scan = robot->laser->GetSamples( &sample_count );
- assert(scan);
+
+ if( ! scan )
+ return 0;
bool obstruction = false;
bool stop = false;
Modified: code/stage/trunk/worlds/simple.world
===================================================================
--- code/stage/trunk/worlds/simple.world 2009-03-17 01:10:29 UTC (rev
7503)
+++ code/stage/trunk/worlds/simple.world 2009-03-17 01:12:04 UTC (rev
7504)
@@ -7,7 +7,7 @@
include "sick.inc"
interval_sim 100 # simulation timestep in milliseconds
-interval_real 100 # real-time interval between simulation updates in
milliseconds
+interval_real 50 # real-time interval between simulation updates in
milliseconds
paused 0
@@ -43,6 +43,6 @@
pose [ 0.892 0.800 0 56.500 ]
sicklaser()
- #ctrl "wander"
+ ctrl "wander"
)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit