Skip to content

Commit

Permalink
add new output port wall to single sonar srevoing
Browse files Browse the repository at this point in the history
  • Loading branch information
auv committed Sep 2, 2014
1 parent 327c346 commit 8ec8d53
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/SingleSonarServoing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,16 @@ void SingleSonarServoing::updateHook()

_wall_servoing_debug.write(debugData);
}

//write detected wall data
sonar_detectors::Wall wall_out;
wall_out.time = base::Time::now();
wall_out.wall_distance = distance_to_wall;
wall_out.wall_angle = current_wall_angle.getRad();
wall_out.last_detection = base::unset<double>();

_wall.write(wall_out);

}

void SingleSonarServoing::errorHook()
Expand Down
3 changes: 3 additions & 0 deletions wall_servoing.orogen
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ task_context "SingleSonarServoing" do
output_port('wall_servoing_debug', 'sonar_detectors/WallServoingDebugData').
doc("estimated wall data, the pointcloud, the wall, the distance, the time")

output_port("wall", "sonar_detectors::Wall").
doc("the detected wall")

runtime_states :WALL_SERVOING, :SEARCHING_WALL, :CHECKING_WALL, :DETECTED_CORNER, :LOST_WALL, :ORIGIN_ALIGNMENT, :ALIGNMENT_COMPLETE
error_states :MISCONFIGURATION

Expand Down

0 comments on commit 8ec8d53

Please sign in to comment.