Skip to content

Condition to Switch Path - Akash#461

Closed
akash-venkateshwaran wants to merge 10 commits intomainfrom
akash_v_condition_switch_path
Closed

Condition to Switch Path - Akash#461
akash-venkateshwaran wants to merge 10 commits intomainfrom
akash_v_condition_switch_path

Conversation

@akash-venkateshwaran
Copy link
Copy Markdown

Description

  • Resolves Conditions to switch the local path #287
  • Completed all the conditions in LocalPath class in local_path.py
  • Completed all the tests for the functions in test_local_path.py except for function 'old_path_in_collision_zone()'

Verification

  • [ ]

Resources

Copy link
Copy Markdown
Contributor

@jamenkaye jamenkaye left a comment

Choose a reason for hiding this comment

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

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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lets change this to a constant instead of just 5. Something like LOW_WIND_THRESH_KMPH

self._logger.warning("Filtered wind sensor is None. Not computing OMPL Path")
return False

if filtered_wind_sensor.speed.speed < 5:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can use the LocalPathState class attributes rather than redefining them again here.

@jamenkaye jamenkaye self-assigned this Mar 1, 2025
@jamenkaye jamenkaye added the path Pathfinding team label Mar 15, 2025
@SPDonaghy SPDonaghy closed this Sep 9, 2025
@SPDonaghy
Copy link
Copy Markdown
Contributor

Closing this as @raghumanimehta is currently working on a newer iteration of this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

path Pathfinding team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conditions to switch the local path

4 participants