Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lrs_doc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lrs2
lrs_doc
Commits
233e2da8
Commit
233e2da8
authored
1 year ago
by
Tommy Persson
Browse files
Options
Downloads
Patches
Plain Diff
Fixing documentation.
parent
c56a1f4b
Branches
main
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
communication.md
+8
-21
8 additions, 21 deletions
communication.md
with
8 additions
and
21 deletions
communication.md
+
8
−
21
View file @
233e2da8
...
...
@@ -11,6 +11,9 @@ in this case. All agents will have the same value for ROS_DOMAIN_ID.
-
Use JSON coding of messages and send the encoded message between agents using an MQTT
broker. All agents will have different value for ROS_DOMAIN_ID.
We want to minimize the regular communication between agents. One
special proble is /tf so we will soon change the code here to use /ns/tf for the tf.
## Issues
...
...
@@ -22,31 +25,15 @@ in this case. All agents will have the same value for ROS_DOMAIN_ID.
## ROS2
If we use ROS2 for inter agent communication we just listen to topics
from other agents. The topics which are used across agents are:
No topics should be sent regularly between agents using ROS2.
-
/tf
-
[
/unit_info
](
https://gitlab.liu.se/lrs2/lrs_msgs_common/-/blob/master/msg/UnitInfo.msg
)
-
[
/unit_info_slow
](
https://gitlab.liu.se/lrs2/lrs_msgs_common/-/blob/master/msg/UnitInfoSlow.msg
)
-
[
/resources_info
](
https://gitlab.liu.se/lrs2/lrs_msgs_common/-/blob/master/msg/ResourcesInfo.msg
)
-
/visualization_marker
-
/visualization_marker_array
-
[
/distribute_tree
](
https://gitlab.liu.se/lrs2/lrs_msgs_tst/-/blob/master/msg/TSTDistributeTreeInfo.msg
)
-
[
/update_node
](
https://gitlab.liu.se/lrs2/lrs_msgs_tst/-/blob/master/msg/TSTUpdateNodeInfo.msg
)
-
[
/response
](
https://gitlab.liu.se/lrs2/lrs_msgs_common/-/blob/master/msg/Response.msg
)
-
/tst_display_request
-
ADD NEW TOPICS...
Here we probably need to fine tune DDS to get wanted communication
properties. This has not been done yet. Also the global /tf will not
work with many agents. So how should that be handled? One alternative
is to use agent specific tf topics like (/dji0/tf) with full frequency
and have a reduced topic /tf. The disadvantage is that we will have
issues with tools like RVIZ if we want to show many agents at the same
time.
## JSON and MQTT Broker
This still works but we now prefer to not send any data this
way. Instead the main Wara-ps broker is used to forward some data
between agents.
Each agent must have a unique ROS_DOMAIN_ID. This can be impractical...
When using an MQTT broker to communicate between ROS2 agents (and also
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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