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

feat: collision detection #28

Open
zthh626 opened this issue May 20, 2022 · 0 comments
Open

feat: collision detection #28

zthh626 opened this issue May 20, 2022 · 0 comments
Assignees

Comments

@zthh626
Copy link
Member

zthh626 commented May 20, 2022

#27 is a pre-req for this ticket.

Thanks to @mohammad-rostampoor we now have this state diagram.

Screen Shot 2022-05-19 at 5 08 48 PM

Using the LIDARs we need to have the state switching for these states (CD = collision detection):

  • CD_TURN_LEFT
  • CD_TURN_RIGHT
  • CD_CLEAR_OBSTACLE

For testing purposes, we can assume that we will always be in "collision detection mode".

Algorithm:

  1. Checks front LIDAR to see if there is an obstacle (if less than 20 m, do next steps)
  2. Locate shore and determine if it is on the left or right of the usv
  3. Change state to either CD_TURN_LEFT or CD_TURN_RIGHT where left or right will be opposite direction of the shore
  4. Continue turning until the front LIDAR no longer sees an obstacle, at this point the shoreside LIDAR should see the object, then change state to CD_CLEAR_OBSTACLE
  5. Continue going straight until the shoreside sees no obstacle
  6. Switch back to Driving state
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

No branches or pull requests

3 participants