From 9820731c61b33679f56f4098df98a2e841f24898 Mon Sep 17 00:00:00 2001 From: Colin Li <102767231+colinli02@users.noreply.github.com> Date: Sat, 25 Nov 2023 03:57:46 -0800 Subject: [PATCH] Updated readme & Added new .msg for CAN transceiver / Simulation Interface (#28) * - Updated ais_ships, added mock_ais_ships - Added sim_cmd, boat_cmd - Updated readme for above and CAN transceiver * Added md comment for formatting * Update table with new subscribers * Add Can to boat simulator topic --------- Co-authored-by: Devon Friend --- CMakeLists.txt | 2 ++ README.md | 35 +++++++++++++++++++++-------------- msg/CanSimToBoatSim.msg | 5 +++++ msg/SailCmd.msg | 4 ++++ 4 files changed, 32 insertions(+), 14 deletions(-) create mode 100644 msg/CanSimToBoatSim.msg create mode 100644 msg/SailCmd.msg diff --git a/CMakeLists.txt b/CMakeLists.txt index 8df4331..2223c0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,11 +18,13 @@ set(common_msg # external "msg/AISShips.msg" "msg/Batteries.msg" + "msg/CanSimToBoatSim.msg" "msg/DesiredHeading.msg" "msg/GenericSensors.msg" "msg/GPS.msg" "msg/LPathData.msg" "msg/Path.msg" + "msg/SailCmd.msg" "msg/WindSensor.msg" "msg/WindSensors.msg" diff --git a/README.md b/README.md index 7aa70d8..5faadef 100644 --- a/README.md +++ b/README.md @@ -14,20 +14,27 @@ documented in the `.msg` or `.srv` file associated with that interface. ROS messages and services used across many ROS packages in the project. ### Project-wide External Interfaces - -| Topic | Type | Publisher | Subscriber(s) | -| ---------------------- | -------------- | ------------------------ | ------------------------------------------- | -| `ais_ships` | AISShips | AIS Receiver | Local Pathfinding | -| `batteries` | Batteries | CAN Transceiver | Local Transceiver | -| `desired_heading` | DesiredHeading | Local Pathfinding | Controller, Boat Simulator | -| `data_sensors` | GenericSensors | CAN Transceiver | Local Transceiver | -| `global_path` | Path | Local Transceiver | Local Pathfinding | -| `gps` | GPS | CAN Transceiver | Local Transceiver, Local Pathfinding | -| `local_path_data` | LPathData | Local Pathfinding | Local Transceiver | -| `mock_gps` | GPS | Boat Simulator | CAN Transceiver | -| `filtered_wind_sensor` | WindSensor | CAN Transceiver | Local Transceiver, Local Pathfinding | -| `mock_wind_sensors` | WindSensors | Boat Simulator | CAN Transceiver | -| `wind_sensors` | WindSensors | CAN Transceiver | Local Transceiver | + +| Topic | Type | Publisher | Subscriber(s) | +| ---------------------- | -------------- | ------------------ | -------------------------------------------------- | +| `ais_ships` | AISShips | CanTrxRosIntf | Local Pathfinding, Local Transceiver | +| `mock_ais_ships` | AISShips | Mock AIS | CanSimIntf | +| `batteries` | Batteries | CanTrxRosIntf | Local Transceiver | +| `boat_sim_input` | CanSimToBoatSim | CanSimIntf | Boat Simulator | +| `desired_heading` | DesiredHeading | Local Pathfinding | CanTrxRosIntf | +| `data_sensors` | GenericSensors | CanTrxRosIntf | Local Transceiver | +| `gps` | GPS | CanTrxRosIntf | Controller, Local Transceiver, Local Pathfinding | +| `mock_gps` | GPS | Boat Simulator | CanSimIntf | +| `local_path_data` | LPathData | Local Pathfinding | Local Transceiver | +| `global_path` | Path | Local Transceiver | Local Pathfinding | +| `sail_cmd` | SailCmd | Controller | CanTrxRosIntf | +| `filtered_wind_sensor` | WindSensor | CanTrxRosIntf | Controller, Local Transceiver, Local Pathfinding | +| `wind_sensors` | WindSensors | CanTrxRosIntf | Local Transceiver | +| `mock_wind_sensors` | WindSensors | Boat Simulator | CanSimIntf | ### Project-wide Internal Interfaces diff --git a/msg/CanSimToBoatSim.msg b/msg/CanSimToBoatSim.msg new file mode 100644 index 0000000..de57930 --- /dev/null +++ b/msg/CanSimToBoatSim.msg @@ -0,0 +1,5 @@ +# Data from the topic /desired_heading +DesiredHeading heading + +# Data from the topic /sail_cmd +SailCmd sail_cmd diff --git a/msg/SailCmd.msg b/msg/SailCmd.msg new file mode 100644 index 0000000..6977a0f --- /dev/null +++ b/msg/SailCmd.msg @@ -0,0 +1,4 @@ +# Angle to rotate the trim tab relative to the mailsail +# Unit: degrees, 0° is the neutral position, Increases CW +# Range: -40° <= angle <= 40° +float32 trim_tab_angle_degrees