Skip to content

Commit

Permalink
QOF: rviz, launch, start gate guess
Browse files Browse the repository at this point in the history
  • Loading branch information
RustyBamboo committed Aug 1, 2018
1 parent 7ec19c3 commit 5d2b7db
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 21 deletions.
4 changes: 4 additions & 0 deletions command/sub8_launch/launch/sub8.launch
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<include file="$(find sub8_launch)/launch/subsystems/rise.launch"/>
<include file="$(find sub8_launch)/launch/subsystems/online_bagger.launch"/>
<include file="$(find sub8_alarm)/launch/alarms.launch" />
<include file="$(find sub8_alarm)/launch/blueview.launch" />

<!-- Run guess server -->
<node pkg="sub8_perception" type="guess_server.py" command="load">

<!--
<include file="$(find sub8_launch)/launch/subsystems/legacy_sonar.launch"/>
Expand Down
8 changes: 4 additions & 4 deletions command/sub8_missions/missions/start_gate_guess.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ def run(sub):
gate_2 = mil_ros_tools.rosmsg_to_numpy(gate_2_req.location.pose.position)

mid = (gate_1 + gate_2) / 2
fprint('Found mid {}'.found(mid))
fprint('Found mid {}'.format(mid))

fprint('Looking at gate')
yield sub.down(DOWN).set_orientation(sub_start_orientation).go(
yield sub.move.down(DOWN).set_orientation(sub_start_orientation).go(
speed=DOWN_SPEED)
yield sub.look_at_without_pitching(mid).go(speed=DOWN_SPEED)
yield sub.move.look_at_without_pitching(mid).go(speed=DOWN_SPEED)

fprint('Going!')
yield sub.set_position(mid).depth(DOWN).go(speed=SPEED)
yield sub.move.set_position(mid).depth(DOWN).go(speed=SPEED)
Loading

0 comments on commit 5d2b7db

Please sign in to comment.