Condition to Switch Path - Akash#461
Closed
akash-venkateshwaran wants to merge 10 commits intomainfrom
Closed
Conversation
…CSailbot/sailbot_workspace into akash_v_condition_switch_path
jamenkaye
reviewed
Mar 1, 2025
Contributor
jamenkaye
left a comment
There was a problem hiding this comment.
Also need to add logic to update the global waypoint when we reach it I think.
| def __init__(self, parent_logger: RcutilsLogger): | ||
| """Initializes the LocalPath class.""" | ||
| self._logger = parent_logger.get_child(name="local_path") | ||
| # TODO: Remove these to make logger right |
Contributor
There was a problem hiding this comment.
Can we use the ros logging? Pls remove the TODO comment either way
| self._logger.warning("Filtered wind sensor is None. Not computing OMPL Path") | ||
| return False | ||
|
|
||
| if filtered_wind_sensor.speed.speed < 5: |
Contributor
There was a problem hiding this comment.
Lets change this to a constant instead of just 5. Something like LOW_WIND_THRESH_KMPH
FireBoyAJ24
requested changes
Mar 1, 2025
| self._logger.warning("Filtered wind sensor is None. Not computing OMPL Path") | ||
| return False | ||
|
|
||
| if filtered_wind_sensor.speed.speed < 5: |
Contributor
There was a problem hiding this comment.
We can add a LOW_WIND_SPEED constant at the top of the file.
| """ | ||
| self.sailbot_position_latlon = gps.lat_lon | ||
| self.sailbot_speed = gps.speed.speed | ||
| self.reference = gps.lat_lon |
Contributor
There was a problem hiding this comment.
We can use the LocalPathState class attributes rather than redefining them again here.
Contributor
|
Closing this as @raghumanimehta is currently working on a newer iteration of this task. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Verification
Resources