Skip to content

Commit

Permalink
fixing compiler warnings in examples/ctrl
Browse files Browse the repository at this point in the history
  • Loading branch information
rtv committed Feb 16, 2011
1 parent 851b3e5 commit 4107d29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions examples/ctrl/fasr2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,9 @@ class Robot
goal,
path );

// if( ! result )
//printf( "FASR warning: plan failed to find path from (%.2f,%.2f) to (%.2f,%.2f)\n",
// pose.x, pose.y, sp.x, sp.y );

if( ! result )
printf( "FASR2 warning: plan failed to find path from (%.2f,%.2f) to (%.2f,%.2f)\n",
pose.x, pose.y, sp.x, sp.y );

graphp = new Graph();

Expand Down
2 changes: 0 additions & 2 deletions examples/ctrl/lasernoise.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ double simple_normal_deviate( double mean, double stddev )
int RangerUpdate( ModelRanger* mod, void* dummy )
{
// get the data
uint32_t sample_count=0;

std::vector<meters_t>& scan = mod->GetRangesMutable();

if( scan.size()>0 )
Expand Down

0 comments on commit 4107d29

Please sign in to comment.