Skip to content
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

Rework mower comms #131

Draft
wants to merge 19 commits into
base: v2
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ CATKIN_IGNORE

cmake-build-debug/
.vscode
.venv
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@
[submodule "src/lib/xbot_remote"]
path = src/lib/xbot_remote
url = https://github.com/ClemensElflein/xbot_remote
[submodule "src/lib/xbot_framework"]
path = src/lib/xbot_framework
url = https://github.com/ClemensElflein/xbot_framework.git
65 changes: 65 additions & 0 deletions services/diff_drive_service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"inputs": [
{
"id": 0,
"name": "Control Twist",
"type": "double[6]"
}
],
"outputs": [
{
"id": 0,
"name": "Actual Twist",
"type": "double[6]"
},
{
"id": 1,
"name": "Left ESC Status",
"type": "uint8_t"
},
{
"id": 2,
"name": "Left ESC Temperature",
"type": "float"
},
{
"id": 3,
"name": "Left ESC Current",
"type": "float"
},
{
"id": 4,
"name": "Right ESC Status",
"type": "uint8_t"
},
{
"id": 5,
"name": "Right ESC Temperature",
"type": "float"
},
{
"id": 6,
"name": "Right ESC Current",
"type": "float"
},
{
"id": 7,
"name": "Wheel Ticks",
"type": "uint32_t[2]"
}
],
"registers": [
{
"id": 0,
"name": "Wheel Ticks Per Meter",
"type": "double"
},
{
"id": 1,
"name": "Wheel Distance",
"type": "double"
}
],
"type": "DiffDriveService",
"version": 1
}
24 changes: 24 additions & 0 deletions services/docking_sensor_service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"inputs": [],
"outputs": [
{
"id": 0,
"name": "Detected Sensors Left",
"type": "uint8_t"
},
{
"id": 1,
"name": "Detected Sensors Right",
"type": "uint8_t"
}
],
"registers": [
{
"id": 0,
"name": "Sensor Timeout Ms",
"type": "uint32_t"
}
],
"type": "DockingSensorService",
"version": 1
}
29 changes: 29 additions & 0 deletions services/emergency_service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"inputs": [
{
"id": 0,
"name": "Set Emergency",
"type": "uint8_t"
}
],
"outputs": [
{
"id": 0,
"name": "Emergency Active",
"type": "uint8_t"
},
{
"id": 1,
"name": "Emergency Latch",
"type": "uint8_t"
},
{
"id": 2,
"name": "Emergency Reason",
"type": "char[255]"
}
],
"registers": [],
"type": "EmergencyService",
"version": 1
}
65 changes: 65 additions & 0 deletions services/gps_service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"inputs": [
{
"id": 0,
"name": "RTCM",
"type": "uint8_t[255]"
}
],
"outputs": [
{
"id": 0,
"name": "PositionXYZ",
"type": "double[3]"
},
{
"id": 1,
"name": "PositionAccuracy",
"type": "double"
},
{
"id": 2,
"name": "FixType",
"type": "char[10]"
},
{
"id": 3,
"name": "MotionVectorENU",
"type": "double[3]"
},
{
"id": 4,
"name": "MotionHeadingAndAccuracy",
"type": "double[2]"
},
{
"id": 5,
"name": "VehicleHeadingAndAccuracy",
"type": "double[3]"
},
{
"id": 6,
"name": "NMEA",
"type": "char[128]"
}
],
"registers": [
{
"id": 0,
"name": "Baudrate",
"type": "uint32_t"
},
{
"id": 1,
"name": "Protocol",
"type": "char[10]"
},
{
"id": 2,
"name": "DatumLatLonHeight",
"type": "double[3]"
}
],
"type": "GpsService",
"version": 1
}
13 changes: 13 additions & 0 deletions services/imu_service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"inputs": [],
"outputs": [
{
"id": 0,
"name": "Axes",
"type": "double[9]"
}
],
"registers": [],
"type": "ImuService",
"version": 1
}
53 changes: 53 additions & 0 deletions services/lidar_service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"type": "LidarService",
"version": 1,
"inputs": [],
"outputs": [
{
"id": 0,
"name": "AngleMinRad",
"type": "double"
},
{
"id": 1,
"name": "AngleMaxRad",
"type": "double"
},
{
"id": 2,
"name": "TimeIncrementSeconds",
"type": "float"
},
{
"id": 3,
"name": "ScanTimeSeconds",
"type": "float"
},
{
"id": 4,
"name": "RangeMinM",
"type": "float"
},
{
"id": 5,
"name": "RangeMaxM",
"type": "float"
},
{
"id": 6,
"name": "Ranges",
"type": "float[100]"
},
{
"id": 7,
"name": "Intensities",
"type": "float[100]"
},
{
"id": 8,
"name": "NewScan",
"type": "uint8_t"
}
],
"registers": []
}
49 changes: 49 additions & 0 deletions services/mower_service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"inputs": [
{
"id": 0,
"name": "MowerEnabled",
"type": "uint8_t"
}
],
"outputs": [
{
"id": 0,
"name": "Mower Status",
"type": "uint8_t"
},
{
"id": 1,
"name": "Rain Detected",
"type": "uint8_t"
},
{
"id": 2,
"name": "Mower Running",
"type": "uint8_t"
},
{
"id": 3,
"name": "Mower ESC Temperature",
"type": "float"
},
{
"id": 4,
"name": "Mower Motor Temperature",
"type": "float"
},
{
"id": 5,
"name": "Mower Motor Current",
"type": "float"
},
{
"id": 6,
"name": "Mower Motor RPM",
"type": "float"
}
],
"registers": [],
"type": "MowerService",
"version": 1
}
60 changes: 60 additions & 0 deletions services/mower_ui_service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"inputs": [
{
"id": 0,
"name": "State ID",
"type": "uint8_t"
},
{
"id": 1,
"name": "State Name",
"type": "char[100]"
},
{
"id": 2,
"name": "Gps Quality",
"type": "float"
},
{
"id": 3,
"name": "Battery Percent",
"type": "float"
}
],
"outputs": [
{
"id": 8,
"name": "Left ESC Temperature",
"type": "uint8_t"
},
{
"id": 9,
"name": "Right ESC Temperature",
"type": "uint8_t"
},
{
"id": 10,
"name": "Mow ESC Temperature",
"type": "uint8_t"
},
{
"id": 11,
"name": "Mow Motor Temperature",
"type": "uint8_t"
}
],
"registers": [
{
"id": 0,
"name": "Wheel Ticks Per Meter",
"type": "double"
},
{
"id": 1,
"name": "Wheel Distance",
"type": "double"
}
],
"type": "MowerUiService",
"version": 1
}
Loading