![]() |
RoveComm C++ 3.0.0
Welcome to the RoveComm C++ repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of RoveComm C++. The RoveComm C++ project is the RoveComm interface for high level systems and should not be used for microcontrollers.
|

This is the repository that contains manifest.json, which is used by all RoveComm implementations as a schema for sending and parsing RoveComm packets. These are the current implementations of RoveComm so far:
IP: 192.168.2.110
| name | dataId | type | count | description |
|---|---|---|---|---|
| DriveLeftRight | 3000 | FLOAT_T | 2 | [LeftSpeed, RightSpeed] (-1 - 1) -> (-100% - 100%) |
| DriveIndividual | 3001 | FLOAT_T | 6 | [LF, LM, LR, RF, RM, RR] (-1 - 1) -> (-100% - 100%) |
| WatchdogOverride | 3002 | UINT8_T | 1 | [Enabled] |
| LeftGimbal | 3003 | INT16_T | 2 | [Pan, Tilt] (0 - 180) |
| RightGimbal | 3004 | INT16_T | 2 | [Pan, Tilt] (0 - 180) |
| BackGimbal | 3005 | INT16_T | 2 | [Pan, Tilt] (0 - 180) |
| LEDRGB | 3006 | UINT8_T | 3 | [R, G, B] (brightness 0 - 255) |
| BackImage | 3007 | UINT32_T | 256 | [Color] (RGBA) |
| InternalRGB | 3008 | UINT8_T | 3 | [R, G, B] (brightness 0 - 255) |
| InternalImage | 3009 | UINT32_T | 256 | [Color] (RGBA) |
| StateDisplay | 3010 | UINT8_T | 1 | [State] (DisplayState) |
| Brightness | 3011 | UINT8_T | 1 | [Brightness] (0 - 255) |
| SetWatchdogMode | 3012 | UINT8_T | 1 | [Mode] (0: Teleop 1: Autonomy) |
| LEDText | 3013 | CHAR | 256 | [Message] (null terminated string) |
| name | dataId | type | count | description |
|---|---|---|---|---|
| MotorSpeeds | 3100 | FLOAT_T | 6 | [FL, ML, BL, FR, MR, BR] (-1 - 1) -> (-100% - 100%) |
| MotorCurrents | 3101 | FLOAT_T | 6 | [FL, ML, BL, FR, MR, BR] (A) |
| VESCCurrents | 3102 | FLOAT_T | 6 | [FL, ML, BL, FR, MR, BR] (A battery side) |
| IMUData | 3103 | FLOAT_T | 2 | [Roll, Pitch] (deg) |
| AccelerometerData | 3104 | FLOAT_T | 3 | [X, Y, Z] (m/s2) |
| Thermal | 3105 | FLOAT_T | 3 | [FanSpeed, BoardTemperature, OtherTemperature] (rpm, C, C) |
| name | dataId | type | count | description |
|---|---|---|---|---|
| VESCFault | 3200 | UINT8_T | 2 | [MotorID, FaultCode] |
Motors
DisplayState
VESCFaultCode
IP: 192.168.2.102
| name | dataId | type | count | description |
|---|---|---|---|---|
| EStop | 4000 | UINT8_T | 0 | Power off all systems except network (PMS will stay on) |
| Suicide | 4001 | UINT8_T | 0 | Power off all systems including network, cannot recover without physical reboot (PMS will stay on) |
| Reboot | 4002 | UINT8_T | 0 | Cycle all systems including network off and back on (PMS will stay on) |
| EnableBus | 4003 | UINT8_T | 1 | [Motor, Core, Aux] (bitmask enable) |
| DisableBus | 4004 | UINT8_T | 1 | [Motor, Core, Aux] (bitmask disable) |
| SetBus | 4005 | UINT8_T | 1 | [Motor, Core, Aux] (bitmask enabled) |
| name | dataId | type | count | description |
|---|---|---|---|---|
| CurrentAndVoltage | 4100 | FLOAT_T | 12 | [PackCurrent, AuxCurrent, LowCurrent, NetworkCurrent, RadioM2Current, RadioM9Current, Cell1Voltage, Cell2Voltage, Cell3Voltage, Cell4Voltage, Cell5Voltage, Cell6Voltage] (A, A, A, A, A, A, V, V, V, V, V, V) |
| BusStatus | 4101 | UINT8_T | 1 | [Motor, Core, Aux, RadioM2, RadioM9, Network] (bitmask enabled) |
| name | dataId | type | count | description |
|---|---|---|---|---|
| PackOvercurrent | 4200 | UINT8_T | 0 | Higher current draw than the battery can support. Rover will Reboot automatically |
| CellUndervoltage | 4201 | UINT8_T | 1 | [C1, C2, C3, C4, C5, C6] (bitmask undervolt) Rover will EStop automatically |
| CellCritical | 4202 | UINT8_T | 1 | [C1, C2, C3, C4, C5, C6] (bitmask critical) Rover will Suicide automatically |
| AuxOvercurrent | 4203 | UINT8_T | 0 | Aux system current draw too high. Rover will disable Aux bus automatically |
IP: 192.168.2.104
| name | dataId | type | count | description |
|---|---|---|---|---|
| GPSLatLonAlt | 6100 | DOUBLE_T | 8 | [Lat, Lon, Alt, HorizontalAccuracy, VerticalAccuracy, HeadingAccuracy, FixType, IsDifferential] (deg, deg, m, m, m, deg, ublox_navpvt fix type http://docs.ros.org/en/noetic/api/ublox_msgs/html/msg/NavPVT.html, bool) |
| CompassData | 6102 | FLOAT_T | 1 | [Heading] (0 - 360) |
| SatelliteCountData | 6103 | UINT8_T | 1 | [Satellites] |
| name | dataId | type | count | description |
|---|---|---|---|---|
| GPSLockError | 6200 | UINT8_T | 0 |
IP: 192.168.100.101
| name | dataId | type | count | description |
|---|---|---|---|---|
| OpenLoop | 7000 | INT16_T | 1 | [Speed] (-1000 - 1000) -> (-100% - 100%) |
| SetAngleTarget | 7001 | FLOAT_T | 1 | [Heading] (0 - 360) |
| SetGPSTarget | 7002 | DOUBLE_T | 4 | [Rover Lat, Rover Lon, Basestation Lat, Basestation Lon] (-90 - 90, -180 - 180, -90 - 90, -180 - 180) |
| WatchdogOverride | 7003 | UINT8_T | 1 | [Enabled] |
| name | dataId | type | count | description |
|---|---|---|---|---|
| CompassAngle | 7100 | FLOAT_T | 1 | [Heading] (0 - 360) |
IP: 192.168.2.107
| name | dataId | type | count | description |
|---|---|---|---|---|
| OpenLoop | 8000 | INT16_T | 6 | [X, J2, J3, J4, J5, J6] (-32768 - 32767) -> (-100% - 100%) |
| TargetAngle | 8001 | FLOAT_T | 6 | [X, J2, J3, J4, J5, J6] (in, deg, deg, deg, deg, deg) |
| TargetAngleIncrement | 8002 | FLOAT_T | 6 | [X, J2, J3, J4, J5, J6] (in, deg, deg, deg, deg, deg) |
| GripperOpenLoop | 8003 | INT16_T | 1 | [Gripper] (-32768 - 32767) -> (-100% - 100%) |
| IKPosition | 8004 | FLOAT_T | 6 | [X, Y, Z, J4, J5, J6] (in, in, in, deg, deg, deg) |
| IKWristIncrement | 8005 | FLOAT_T | 6 | [X, Y, Z, J4, J5, J6] (in, in, in, deg, deg, deg) |
| IKWorldIncrement | 8006 | FLOAT_T | 6 | [TX, TY, TZ, RX, RY, RZ] (in, in, in, deg, deg, deg) |
| Laser | 8007 | UINT8_T | 1 | [Enabled] |
| LinearServo | 8008 | UINT8_T | 1 | [Position] (0 - 180) |
| Cache | 8009 | UINT8_T | 1 | [Position] (0 - 180) |
| WatchdogOverride | 8010 | UINT8_T | 1 | [Enabled] |
| LimitSwitchOverride | 8011 | UINT16_T | 1 | [X+, X-, J2+, J2-, J3+, J3-, J4+, J4-, J5+, J5-] (bitmask override enabled) |
| ClosedLoopOverride | 8012 | UINT8_T | 1 | [X, J2, J3, J4, J5, J6] (bitmask override enabled) |
| CalibrateEncoder | 8013 | UINT8_T | 1 | [X, Roll] (bitmask start calibration) |
| SoftLimitOverride | 8014 | UINT16_T | 1 | [X+, X-, J2+, J2-, J3+, J3-, J4+, J4-, J5+, J5-] (bitmask override enabled) |
| ArmGimbal1 | 8015 | INT16_T | 2 | [Pan, Tilt] (0 - 180) |
| ArmGimbal2 | 8016 | INT16_T | 2 | [Pan, Tilt] (0 - 180) |
| IKToolIncrement | 8017 | FLOAT_T | 6 | [TX, TY, TZ, RX, RY, RZ] (in, in, in, deg, deg, deg) |
| name | dataId | type | count | description |
|---|---|---|---|---|
| Position | 8100 | FLOAT_T | 9 | [X, J2, J3, J4, J5, J6, GX, GY, GZ] (in, deg, deg, deg, deg, deg, in, in, in) |
| LimitSwitch | 8101 | UINT16_T | 1 | [X+, X-, J2+, J2-, J3+, J3-, J4+, J4-, J5+, J5-] (bitmask depressed) |
| SoftLimit | 8102 | UINT16_T | 1 | [X+, X-, J2+, J2-, J3+, J3-, J4+, J4-, J5+, J5-] (bitmask triggered) |
| SMOCOPing | 8103 | UINT16_T | 7 | [X, J2, J3, J4, J5, J6, G] (ping time ms) |
| Target | 8104 | FLOAT_T | 6 | [X, J2, J3, J4, J5, J6] (in, deg, deg, deg, deg, deg) |
IP: 192.168.2.108
| name | dataId | type | count | description |
|---|---|---|---|---|
| AugerAxis | 9000 | INT16_T | 1 | [Speed] (-32768 - 32767) -> (-100% - 100%) |
| LimitSwitchOverride | 9001 | UINT8_T | 1 | [AugerAxis+, AugerAxis-] (bitmask override enabled) |
| CalibrateEncoder | 9002 | UINT8_T | 0 | Request calibration of the AugerAxis encoder |
| Auger | 9003 | INT16_T | 1 | [Speed] (-1000 - 1000) -> (-100% - 100%) |
| WatchdogOverride | 9004 | UINT8_T | 1 | [Enabled] |
| LED | 9005 | UINT8_T | 4 | [White, 365, 405, 500] (brightness 0 - 255) |
| AugerServo | 9006 | INT16_T | 2 | [AFFilters, SoilTrapdoor] (0 - 180) |
| AugerGimbal | 9007 | INT16_T | 2 | [Pan, Tilt] (0 - 180) |
| name | dataId | type | count | description |
|---|---|---|---|---|
| Position | 9100 | FLOAT_T | 1 | [AugerAxis] (in) |
| AugerSpeed | 9101 | FLOAT_T | 1 | [AugerSpeed] (rpm) |
| LimitSwitch | 9102 | UINT8_T | 1 | [AugerAxis+, AugerAxis-] (bitmask depressed) |
| Environmental | 9103 | FLOAT_T | 2 | [Temperature, Humidity] (C, relative %) |
| AugerCurrent | 9104 | FLOAT_T | 1 | [AugerCurrent] (A) |
| SMOCOPing | 9105 | UINT16_T | 1 | [AugerAxis] (ping time ms) |
| LEDStatus | 9106 | INT32_T | 1 | [LEDTimer] (ms) |
IP: 192.168.3.100
| name | dataId | type | count | description |
|---|---|---|---|---|
| StartAutonomy | 11000 | UINT8_T | 1 | Start Autonomy_Software |
| DisableAutonomy | 11001 | UINT8_T | 1 | Return Autonomy_Software to Idle state |
| AddPositionLeg | 11002 | DOUBLE_T | 3 | [Lat, Lon, AUTONOMYWAYPOINTTYPES] |
| AddMarkerLeg | 11003 | DOUBLE_T | 4 | [Lat, Lon, AUTONOMYWAYPOINTTYPES, MarkerRadius (meters)] |
| AddObjectLeg | 11004 | DOUBLE_T | 4 | [Lat, Lon, AUTONOMYWAYPOINTTYPES, ObjectRadius (meters)] |
| ClearWaypoints | 11005 | UINT8_T | 1 | Clear queued positions, markers, and objects waypoints. |
| SetMaxSpeed | 11006 | FLOAT_T | 1 | A multiplier from 0.0 to 1.0 that will scale the max power effort of Autonomy. |
| SetMinTravScore | 11007 | FLOAT_T | 1 | A multiplier from 0.0 to 1.0 that will filter points from the traversability map. Higher values will result in more conservative pathing. |
| SetBetaBias | 11008 | FLOAT_T | 1 | A multiplier from 0.0 to 1.0 that will bias the pathing algorithm towards shorter paths (lower values) or safer paths (higher values). |
| SetLoggingLevels | 11009 | UINT8_T | 3 | [Enum (AUTONOMYLOG), Enum (AUTONOMYLOG), Enum (AUTONOMYLOG)] {Console, File, RoveComm} |
| AddObstacle | 11010 | DOUBLE_T | 3 | [Lat, Lon, ObstacleRadius (meters)] |
| ClearObstacles | 11011 | UINT8_T | 1 | Clear queued permanent obstacles. |
| name | dataId | type | count | description |
|---|---|---|---|---|
| CurrentState | 11100 | UINT8_T | 1 | [State] (AUTONOMYSTATE) |
| StateDisplay | 11101 | UINT8_T | 1 | [State] (0: Teleop 1: Autonomy 2: Reached Goal) |
| ThreadFPS | 11103 | UINT32_T | 2 | [Thread, FPS] (AUTONOMYTHREADS, fps) |
| PathWaypoints | 11104 | DOUBLE_T | 1000 | [Lat, Lon, Lat, Lon, ...] (deg, deg, deg, deg, ...) |
| TimeRemaining | 11105 | DOUBLE_T | 1 | [EstimatedTimeToGoal] (s) |
AUTONOMYSTATE
AUTONOMYLOG
AUTONOMYTHREADS
AUTONOMYWAYPOINTTYPES
IP: 192.168.4.100
| name | dataId | type | count | description |
|---|---|---|---|---|
| TakePicture | 12000 | UINT8_T | 2 | [Camera, Restart] |
| ToggleStream | 12001 | UINT8_T | 2 | [Camera, Restart] |
| SetFFMPEGArguments | 12002 | CHAR | 16384 | [Arguments] (0x1f delimited, 0x00 terminated list with maximum length of 16383 characters for RPi-Camera/config.toml/ffmpeg_arguments, first byte is camera index. See RPI-Camera/config.toml for substitutions) |
| SetPictureArguments | 12003 | CHAR | 16384 | [Arguments] (0x1f delimited, 0x00 terminated list with maximum length of 16383 characters for RPi-Camera/config.toml/picture_arguments, first byte is camera index. See RPI-Camera/config.toml for substitutions) |
| ZMQCommands | 12004 | CHAR | 16384 | [Command] (0x1f delimited, 0x00 terminated list of commands, first byte is camera index) |
| V4L2SetControls | 12005 | CHAR | 16384 | [Command] (0x00 terminated argument passed to v4l2-ctl –set-ctrl, first byte is camera index) |
| name | dataId | type | count | description |
|---|---|---|---|---|
| AvailableCameras | 12100 | UINT8_T | 2 | [Connected, Streaming] (bitmask indexes, bitmask indexes) |
| PictureTaken | 12101 | UINT8_T | 0 | Picture has been taken. |
| Utilization | 12102 | UINT8_T | 7 | [cpu0, cpu1, cpu2, cpu3, mem, storage, temp] (% usage, % usage, % usage, % usage, % usage, C) |
IP: 192.168.4.101
| name | dataId | type | count | description |
|---|---|---|---|---|
| TakePicture | 13000 | UINT8_T | 2 | [Camera, Restart] |
| ToggleStream | 13001 | UINT8_T | 2 | [Camera, Restart] |
| SetFFMPEGArguments | 13002 | CHAR | 16384 | [Arguments] (0x1f delimited, 0x00 terminated list with maximum length of 16383 characters for RPi-Camera/config.toml/ffmpeg_arguments, first byte is camera index. See RPI-Camera/config.toml for substitutions) |
| SetPictureArguments | 13003 | CHAR | 16384 | [Arguments] (0x1f delimited, 0x00 terminated list with maximum length of 16383 characters for RPi-Camera/config.toml/picture_arguments, first byte is camera index. See RPI-Camera/config.toml for substitutions) |
| ZMQCommands | 13004 | CHAR | 16384 | [Command] (0x1f delimited, 0x00 terminated list of commands, first byte is camera index) |
| V4L2SetControls | 13005 | CHAR | 16384 | [Command] (0x00 terminated argument passed to v4l2-ctl –set-ctrl, first byte is camera index) |
| name | dataId | type | count | description |
|---|---|---|---|---|
| AvailableCameras | 13100 | UINT8_T | 2 | [Connected, Streaming] (bitmask indexes, bitmask indexes) |
| PictureTaken | 13101 | UINT8_T | 0 | Picture has been taken. |
| Utilization | 13102 | UINT8_T | 7 | [cpu0, cpu1, cpu2, cpu3, mem, storage, temp] (% usage, % usage, % usage, % usage, % usage, C) |
IP: 192.168.4.102
| name | dataId | type | count | description |
|---|---|---|---|---|
| TakePhoto | 14000 | UINT8_T | 1 | [Camera] |
| ToggleStream | 14001 | UINT8_T | 2 | [Camera, Action] (id, 0: Shutdown 1: Startup 2: Restart) |
| AdjustBrightness | 14002 | UINT8_T | 2 | [Camera, Brightness] (id, 0 - 255) |
| AdjustContrast | 14003 | UINT8_T | 2 | [Camera, Contrast] (id, 0 - 255) |
| AdjustSaturation | 14004 | UINT8_T | 2 | [Camera, Saturation] (id, 0 - 255) |
| AdjustHue | 14005 | UINT8_T | 2 | [Camera, Hue] (id, 0 - 255) |
| SetWhiteBalance | 14008 | UINT8_T | 2 | [Camera, Temperature] |
| AdjustBacklightContrast | 14009 | UINT8_T | 2 | [Camera, BacklightContrast] |
| SetExposure | 14010 | INT32_T | 2 | [Camera, Exposure] |
| name | dataId | type | count | description |
|---|---|---|---|---|
| AvailableCameras | 14100 | UINT8_T | 1 | [Camera0, Camera1, Camera2, Camera3, Camera4, Camera5, Camera6, Camera7] (bitmask able to stream) |
| StreamingCameras | 14101 | UINT8_T | 4 | [Port0, Port1, Port2, Port3] (currently streaming on each port) |
| PictureTaken | 14102 | UINT8_T | 0 | Picture has been taken |
| name | dataId | type | count | description |
|---|---|---|---|---|
| CameraUnavailable | 14200 | UINT8_T | 1 | [Camera] (id) Camera has errored and stopped streaming |
IP: 192.168.3.105
| name | dataId | type | count | description |
|---|---|---|---|---|
| InstrumentsAxis | 16000 | INT16_T | 1 | [Speed] (-32768 - 32767) -> (-100% - 100%) |
| LimitSwitchOverride | 16001 | UINT8_T | 1 | [InstrumentsAxis+, InstrumentsAxis-] (bitmask override enabled) |
| CalibrateEncoder | 16002 | UINT8_T | 0 | Request calibration of the InstrumentsAxis encoder |
| WatchdogOverride | 16003 | UINT8_T | 1 | [Enabled] |
| Laser | 16004 | UINT8_T | 1 | [Enabled] |
| RequestRamanReading | 16005 | UINT32_T | 2 | [Integration Time, Sample Count] (ms, n) |
| name | dataId | type | count | description |
|---|---|---|---|---|
| Position | 16100 | FLOAT_T | 2 | [InstrumentsAxis, TOF] (mm, mm) |
| LimitSwitch | 16101 | UINT8_T | 1 | [InstrumentsAxis+, InstrumentsAxis-] (bitmask depressed) |
| RamanReading_Part1 | 16102 | UINT16_T | 512 | Raman CCD elements 0-511 |
| RamanReading_Part2 | 16103 | UINT16_T | 512 | Raman CCD elements 512-1023 |
| RamanReading_Part3 | 16104 | UINT16_T | 512 | Raman CCD elements 1024-1535 |
| RamanReading_Part4 | 16105 | UINT16_T | 512 | Raman CCD elements 1536-2047 |
| RamanReading_Part5 | 16106 | UINT16_T | 512 | Raman CCD elements 2048-2559 |
| SMOCOPing | 16107 | UINT16_T | 1 | [InstrumentsAxis] (ping time ms) |
IP: 192.168.100.102
| name | dataId | type | count | description |
|---|---|---|---|---|
| DronePose | 17100 | DOUBLE_T | 9 | [Lat, Lon, Alt, HorizontalAccuracy, VerticalAccuracy, HeadingAccuracy, FixType, Heading, Satellites] (deg, deg, m, m, m, deg, Ardupilot GPS fix type https://mavlink.io/en/messages/common.html#GPS_FIX_TYPE, 0 - 360, Satellite number) |
IP: 127.0.0.1
| name | dataId | type | count | description |
|---|---|---|---|---|
| IMU | 18100 | DOUBLE_T | 10 | [Accel X, Accel Y, Accel Z, Gyro X, Gyro Y, Gyro Z, Quat X, Quat Y, Quat Z, Quat W] |
| name | ip |
|---|---|
| BasestationSwitch | 192.168.254.2 |
| RoverSwitch | 192.168.254.1 |
| Rover900MHzRocket | 10.0.0.3 |
| Basestation900MHzRocket | 10.0.0.4 |
| Rover5GHzRocket | 10.0.0.19 |
| Basestation5GHzRocket | 10.0.0.20 |
| Rover2_4GHzRocket | 10.0.0.11 |
| Basestation2_4GHzRocket | 10.0.0.12 |