Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Triangle Buoy SM #105

Closed
wants to merge 10 commits into from
Closed

Triangle Buoy SM #105

wants to merge 10 commits into from

Conversation

flamma7
Copy link
Contributor

@flamma7 flamma7 commented Jul 4, 2019

Closes #86 Closes #45

Logic of the task:

  1. Go to the nearest point 'approach_dist' away from the buoy from the sub
  2. Begin to orbit around the pose of the buoy 'approach_dist' away using action server "orbit_bouy"
  3. Once 'number_solo_frames' of the "slay_class" have been received by the orbit_bouy server, success will be indicated to task code and PID control will be restored back to the waypoint navigator.
  4. The sub records the pose it is at (preslay_pose) and sends a request to the waypoint navigator 'slay_dist' behind the buoy. The sub uses "move_mode='backwards'" in the request so that the arm doesn't get stuck in the buoy
  5. The sub begins monitoring the imu and once a value on "imu_axis" is gt/lt "jump_thresh" a bump is indicated in task code. This causes the sub to abort the last request to waypoint nav and send the "preslay_pose" we recorded from step 4

New rospkg: perception_control. Meant to be the interface for visual servoing and optical flow, nodeleted with darknet and the occam driver.

Steps to run:
roslaunch cusub_sim_bringup divewell_single_task.launch
roslaunch cusub_sim_bringup leviathan_description.launch
roslaunch cusub_common_bringup leviathan_sim.launch
roslaunch perception_control orbit.launch __ns:=leviathan
roslaunch mapper mapper.launch truth_data:=true __ns:=leviathan
roslaunch state_machine state_machine.launch __ns:=leviathan using_darknet:=false config_filename:=mission_config_sim.yaml

@flamma7 flamma7 requested review from DrYerzinia and skhadem July 4, 2019 03:53
@@ -100,7 +100,7 @@ namespace pose_generator
class_name = "jiangshi";
if( bbs.size() != 1 ) { return false; }
int border_size = 10; // add room for a border that we'll say is part of the 'not bouy' class
checkBoxes(bbs, border_size);
if ( !checkBoxes(bbs, border_size) ) { return false; }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the OpenCV error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to actually use the result of checkBoxes()

@@ -0,0 +1,43 @@
#ifndef MOVEMENT_CLASS_SRC_MOVEMENT_CLASS_H_
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class isn't used I'm going to delete it in next PR for path marker

@flamma7
Copy link
Contributor Author

flamma7 commented Jul 7, 2019

Need to add aspect ratio yaw calculation

@flamma7 flamma7 closed this Jul 12, 2019
@flamma7 flamma7 deleted the big_bouy branch January 25, 2020 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump Detection 2019 Buoy State Machine
1 participant