-
Notifications
You must be signed in to change notification settings - Fork 0
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
Added new message types Trajectory and Navigation Point. #515
Changes from all commits
cfbd170
a4355e7
668b6d7
63b4e0a
5c37dfc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
geometry_msgs/Point position | ||
float32 speed | ||
uint8 behaviour | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Verify behaviour field constraints needs update The
🔗 Analysis chainVerify behaviour field constraints The behaviour field should align with the Behaviour enum in localplanning/utils.py. Let's verify the implementation and usage. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Find and analyze the Behaviour enum definition and its usage
echo "Searching for Behaviour enum definition:"
rg -p "class Behaviour" --type py
echo -e "\nChecking for behaviour field usage:"
rg -p "behaviour.*=.*\d+" --type py
Length of output: 420 Script: #!/bin/bash
# Let's examine the Behaviour enum definition and its values
echo "Checking Behaviour enum implementation:"
rg -A 10 "class Behaviour" code/planning/src/local_planner/utils.py
# Let's also check for any other usage of behaviour field
echo -e "\nChecking for other behaviour field references:"
rg -i "behaviour" --type py
Length of output: 44713 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Header header | ||
planning/NavigationPoint[] navigationPoints |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from enum import IntEnum | ||
|
||
# getattr(Behaviour, "name").value returns the ID | ||
# Behaviour(id) returns Behaviour.NAME | ||
|
||
|
||
class BehaviourEnum(IntEnum): | ||
CRUISING = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Remove unnecessary
rosout
dependencyThe
rosout
package is a core ROS functionality and doesn't need to be explicitly listed as a dependency. It's automatically available to all ROS nodes.find_package(catkin REQUIRED COMPONENTS perception rospy - rosout roslaunch std_msgs geometry_msgs message_generation )
📝 Committable suggestion