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

Create AutonomousTask to handle autonomous navigation #223

Closed

Conversation

huttongrabiel
Copy link
Contributor

@huttongrabiel huttongrabiel commented Feb 28, 2023

  • Use DriveToWaypointCommand functionality to execute an autonomous task.

  • Add necessary constants to Constants.h

  • Add handleWaypointNavRequest to handle waypointNavRequest packet from MissionControl, starts autonomous navigation

  • Start autonomous task from MissionControlProtocol.cpp

@huttongrabiel huttongrabiel force-pushed the autonomous-task branch 13 times, most recently from e32c323 to 1802910 Compare March 8, 2023 03:48
@huttongrabiel huttongrabiel marked this pull request as ready for review March 8, 2023 03:54
@huttongrabiel huttongrabiel requested a review from abhaybd March 8, 2023 03:54
Copy link
Member

@abhaybd abhaybd left a comment

Choose a reason for hiding this comment

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

Pretty good! Some comments about sleeping, using a CV, etc.

src/CMakeLists.txt Outdated Show resolved Hide resolved
src/CMakeLists.txt Outdated Show resolved Hide resolved
src/Constants.h Outdated Show resolved Hide resolved
src/Rover.cpp Outdated Show resolved Hide resolved
src/autonomous/AutonomousTask.cpp Outdated Show resolved Hide resolved
src/autonomous/AutonomousTask.cpp Outdated Show resolved Hide resolved
src/autonomous/AutonomousTask.cpp Outdated Show resolved Hide resolved
src/network/MissionControlProtocol.h Outdated Show resolved Hide resolved
src/network/MissionControlProtocol.h Outdated Show resolved Hide resolved
src/autonomous/AutonomousTask.h Show resolved Hide resolved
@huttongrabiel huttongrabiel force-pushed the autonomous-task branch 2 times, most recently from 1172ef2 to 1d16e76 Compare March 10, 2023 04:49
@huttongrabiel huttongrabiel requested a review from abhaybd March 10, 2023 04:54
Copy link
Member

@abhaybd abhaybd left a comment

Choose a reason for hiding this comment

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

Pretty good, just some more minor fixes needed

src/CMakeLists.txt Outdated Show resolved Hide resolved
src/autonomous/AutonomousTask.cpp Outdated Show resolved Hide resolved
src/autonomous/AutonomousTask.cpp Outdated Show resolved Hide resolved
src/autonomous/AutonomousTask.h Outdated Show resolved Hide resolved
src/autonomous/AutonomousTask.h Outdated Show resolved Hide resolved
src/network/MissionControlProtocol.cpp Outdated Show resolved Hide resolved
Copy link
Member

@abhaybd abhaybd left a comment

Choose a reason for hiding this comment

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

This looks good! Let's try to do some testing to ensure it works well before merging. Testing in sim would be fine, let's discuss how to do that on saturday.

@huttongrabiel huttongrabiel force-pushed the autonomous-task branch 3 times, most recently from 037fdfc to 1b3169d Compare October 28, 2023 19:02
@huttongrabiel huttongrabiel requested a review from abhaybd October 28, 2023 19:08
Copy link
Member

@abhaybd abhaybd left a comment

Choose a reason for hiding this comment

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

Looks good, just some questions about the MC protocol

src/network/MissionControlProtocol.cpp Outdated Show resolved Hide resolved
src/network/MissionControlProtocol.cpp Outdated Show resolved Hide resolved
huttongrabiel and others added 8 commits March 30, 2024 20:06
Use DriveToWaypointCommand functionality to execute an autonomous task.

Add necessary constants to Constants.h

Start autonomous task from MissionControlProtocol.cpp
JavaScript truncates any value such as 0.0 or 1.0 to 0 and 1,
respectively. This fails validation because we looks for floats and
those come across as unsigned ints. To fix this, we check if the
incoming number is either a float or an unsigned number. Both are
accepted.
@huttongrabiel huttongrabiel mentioned this pull request May 4, 2024
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.

2 participants