Skip to content

Conversation

@AbuWabu3697
Copy link

With the live logger and the best.pt file

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a good start, but I'd like to see this be a ROS node w/ the relevant parameters that rather than writing to a CSV file, it will publish messages on a topic that has the information that you would write to the CSV. Most of your logic would stay the same.

@Rishav-N thoughts? ^

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed. @AbuWabu3697 rewrite this as a ros node and write to the vision_msgs/Detection2DArray topic

The format of the message should be vision_msgs/msg/Detection2DArray. Check:
(https://docs.ros.org/en/lunar/api/vision_msgs/html/msg/Detection2DArray.html)

Each Detection2D in the array should be formatted like this:
(https://docs.ros.org/en/lunar/api/vision_msgs/html/msg/Detection2D.html)

Check the types for everything Detection2D expects using the links. You have all this from your cv results in the code below you just have to put it in this format and publish to the topic.

Your current code has to be executed as a script. We don't want this instead we want it to be launched as a ros node here: src/subsystems/navigation/athena_planner/launch/nav2_nodes.launch.py. Then we can utilize this in the behavior tree.

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.

3 participants