Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OLD CCF - The CeTI Cobotic Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
CeTI
ROS
CeTI Cobotic Framework
OLD CCF - The CeTI Cobotic Framework
Commits
f58d0549
Commit
f58d0549
authored
5 years ago
by
Johannes Mey
Browse files
Options
Downloads
Patches
Plain Diff
add README
parent
281f7493
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+40
-0
40 additions, 0 deletions
README.md
with
40 additions
and
0 deletions
README.md
0 → 100644
+
40
−
0
View file @
f58d0549
# Simple ROS-NNG-Test
This project tests the combination of
[
NNG
](
https://nng.nanomsg.org/
)
and ROS.
NNG supports several communication patterns. Currently,
*pub-sub*
is supported; others may follow.
## Publish-Subscribe
This demonstrator contains two nodes, a publisher and a subscriber.
The publisher listens to ROS messages.
Each received message is transmitted to the subscriber using NNG.
For each received message, the subscriber publishes another ROS message.
Currently, the transmission works using TCP with the fixed NNG URL
`"tcp://localhost:6576"`
.
### Running the Example
-
Checkout the project using git.
Since the CMake build uses git submodules, do not remove the git information!
It is not required to checkout the submodule manually, this is done using CMake.
-
Build the project.
-
Start ROS
```
$ roscore
```
-
Start the
`publisher`
and
`subscriber`
nodes in two terminals.
Both are in the
`nng_test`
namespace.
```
$ rosrun nng_test publisher
```
```
$ rosrun nng_test subscriber
```
-
Listen to received messages for the topic
`/nnc_test/received_nng_subscription`
.
```
$ rostopic echo /nnc_test/received_nng_subscription
```
-
Trigger a transmission by publishing a string message to
`/nnc_test/publish_to_nng`
.
```
$ rostopic pub -1 /nnc_test/publish_to_nng std_msgs/String "Some Message"
```
The
`rostopic echo`
command will show the received message.
\ No newline at end of file
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