Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
messages-schemas
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
CdF
CdF 2020-2021
modules
libraries
communication
messages
messages-schemas
Commits
addcd5e9
Unverified
Commit
addcd5e9
authored
5 years ago
by
Charles JAVERLIAT
Browse files
Options
Downloads
Patches
Plain Diff
docs/Add documentation
parent
e346042d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+21
-1
21 additions, 1 deletion
.gitlab-ci.yml
messages/OdomMessage.proto
+18
-0
18 additions, 0 deletions
messages/OdomMessage.proto
messages/StatusMessage.proto
+6
-0
6 additions, 0 deletions
messages/StatusMessage.proto
messages/ToFMessage.proto
+3
-0
3 additions, 0 deletions
messages/ToFMessage.proto
with
48 additions
and
1 deletion
.gitlab-ci.yml
+
21
−
1
View file @
addcd5e9
...
@@ -20,6 +20,9 @@ build:
...
@@ -20,6 +20,9 @@ build:
stage
:
build
stage
:
build
script
:
script
:
-
make
-
make
-
ls python/
-
ls cpp/
-
ls nanopb/
artifacts
:
artifacts
:
paths
:
paths
:
-
python/
-
python/
...
@@ -39,12 +42,17 @@ deploy_python:
...
@@ -39,12 +42,17 @@ deploy_python:
script
:
script
:
-
echo "$SSH_PRIVATE_KEY_PYTHON" | tr -d '\r' | ssh-add -
-
echo "$SSH_PRIVATE_KEY_PYTHON" | tr -d '\r' | ssh-add -
-
git clone $PYTHON_GIT_URL
-
git clone $PYTHON_GIT_URL
-
rm -f messages-schemas-python/*.py
messages-schemas-cpp/*.cc messages-schemas-cpp/*.h
-
rm -f messages-schemas-python/*.py
-
mv python/* messages-schemas-python/
-
mv python/* messages-schemas-python/
-
cd messages-schemas-python
-
cd messages-schemas-python
-
git add .
-
git add .
-
git diff --quiet && git diff --staged --quiet || git commit -m "$COMMIT_MSG"
-
git diff --quiet && git diff --staged --quiet || git commit -m "$COMMIT_MSG"
-
git push -u $PYTHON_GIT_URL master
-
git push -u $PYTHON_GIT_URL master
only
:
refs
:
-
master
changes
:
-
messages/*
deploy_cpp
:
deploy_cpp
:
stage
:
deploy
stage
:
deploy
...
@@ -53,11 +61,17 @@ deploy_cpp:
...
@@ -53,11 +61,17 @@ deploy_cpp:
script
:
script
:
-
echo "$SSH_PRIVATE_KEY_CPP" | tr -d '\r' | ssh-add -
-
echo "$SSH_PRIVATE_KEY_CPP" | tr -d '\r' | ssh-add -
-
git clone $CPP_GIT_URL
-
git clone $CPP_GIT_URL
-
rm -f messages-schemas-cpp/*.cc messages-schemas-cpp/*.h
-
mv cpp/* messages-schemas-cpp/
-
mv cpp/* messages-schemas-cpp/
-
cd messages-schemas-cpp
-
cd messages-schemas-cpp
-
git add .
-
git add .
-
git diff --quiet && git diff --staged --quiet || git commit -m "$COMMIT_MSG"
-
git diff --quiet && git diff --staged --quiet || git commit -m "$COMMIT_MSG"
-
git push -u $CPP_GIT_URL master
-
git push -u $CPP_GIT_URL master
only
:
refs
:
-
master
changes
:
-
messages/*
deploy_nanopb
:
deploy_nanopb
:
stage
:
deploy
stage
:
deploy
...
@@ -66,8 +80,14 @@ deploy_nanopb:
...
@@ -66,8 +80,14 @@ deploy_nanopb:
script
:
script
:
-
echo "$SSH_PRIVATE_KEY_NANOPB" | tr -d '\r' | ssh-add -
-
echo "$SSH_PRIVATE_KEY_NANOPB" | tr -d '\r' | ssh-add -
-
git clone $NANOPB_GIT_URL
-
git clone $NANOPB_GIT_URL
-
rm -f messages-schemas-nanopb/*.cc messages-schemas-cpp/*.h
-
mv nanopb/* messages-schemas-nanopb/
-
mv nanopb/* messages-schemas-nanopb/
-
cd messages-schemas-nanopb
-
cd messages-schemas-nanopb
-
git add .
-
git add .
-
git diff --quiet && git diff --staged --quiet || git commit -m "$COMMIT_MSG"
-
git diff --quiet && git diff --staged --quiet || git commit -m "$COMMIT_MSG"
-
git push -u $NANOPB_GIT_URL master
-
git push -u $NANOPB_GIT_URL master
only
:
refs
:
-
master
changes
:
-
messages/*
This diff is collapsed.
Click to expand it.
messages/OdomMessage.proto
+
18
−
0
View file @
addcd5e9
...
@@ -7,11 +7,29 @@ message Point2D {
...
@@ -7,11 +7,29 @@ message Point2D {
float
y
=
2
;
float
y
=
2
;
}
}
/**
* Robot odometry message
*/
message
OdomMessage
{
message
OdomMessage
{
/**
* Sensor ID used to differentiate the code wheels, LIDAR, ToF, ...
*/
int32
sensor_id
=
1
;
int32
sensor_id
=
1
;
/**
* Cartesian coordinates in meters of the robot center point
*/
Point2D
position
=
2
;
Point2D
position
=
2
;
/**
* Yaw angle in radians of the robot center point
*/
float
angle
=
3
;
float
angle
=
3
;
/**
* Linear speed in meters/sec of the robot center point
*/
float
linearSpeed
=
4
;
float
linearSpeed
=
4
;
/**
* Angular speed in radians/sec of the robot center point
*/
float
angularSpeed
=
5
;
float
angularSpeed
=
5
;
}
}
This diff is collapsed.
Click to expand it.
messages/StatusMessage.proto
+
6
−
0
View file @
addcd5e9
...
@@ -6,9 +6,15 @@ import "OdomMessage.proto";
...
@@ -6,9 +6,15 @@ import "OdomMessage.proto";
package
status_message
;
package
status_message
;
/**
* Robot status message at a given time
*/
message
StatusMessage
{
message
StatusMessage
{
int32
id
=
1
;
int32
id
=
1
;
google.protobuf.Timestamp
timestamp
=
2
;
google.protobuf.Timestamp
timestamp
=
2
;
oneof
body
{
oneof
body
{
ToFMessage
tof
=
3
;
ToFMessage
tof
=
3
;
OdomMessage
odom
=
4
;
OdomMessage
odom
=
4
;
...
...
This diff is collapsed.
Click to expand it.
messages/ToFMessage.proto
+
3
−
0
View file @
addcd5e9
...
@@ -2,6 +2,9 @@ syntax = "proto3";
...
@@ -2,6 +2,9 @@ syntax = "proto3";
package
status_message
;
package
status_message
;
/**
* Time of flight sensor message
*/
message
ToFMessage
{
message
ToFMessage
{
int32
sensor_id
=
1
;
int32
sensor_id
=
1
;
float
distance
=
2
;
float
distance
=
2
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment