GryphonRacingAI / gra

ROS + Docker code for University of Leeds Gryphon Racing AI team 2023-24
4 stars 4 forks source link

AI2VCU #37

Open frankplow opened 3 months ago

frankplow commented 3 months ago

Adds a ROS node which communicates between ROS and the VCU using the FS-AI API library.

The node subscribes to one message: ackermann_cmd. The node publishes one message: vcu2ai, which provides odometry and status messages from the VCU in the custom VCU2AI message format defined in msgs/VCU2AI.msg.

The node sends and receives messages from the VCU every 10ms, and receives ackermann_cmd messages asynchronously. Note this means there may be up to 10ms of latency for any driving command.

I don't have a working ROS installation, so I haven't been able to test this at all. Somebody else will want to test this then + add launch scripts before merging. There's still a fair bit to do, but hopefully this provides a good skeleton.