Skip to content

Commit b205d8a

Browse files
Merge pull request #1790 from jasonrandrews/review
Review Cyclone DDS install guide
2 parents d25085e + f915514 commit b205d8a

File tree

2 files changed

+47
-27
lines changed

2 files changed

+47
-27
lines changed

content/install-guides/cyclonedds.md

Lines changed: 43 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ weight: 1
2222
---
2323

2424
The [Eclipse Cyclone DDS](https://cyclonedds.io/) is an open-source implementation of the Data Distribution Service ([DDS](https://en.wikipedia.org/wiki/Data_Distribution_Service)) standard, designed for high-performance, real-time, and scalable communication in autonomous systems, robotics, industrial IoT, and aerospace applications.
25-
It is part of the Eclipse Foundation and is widely used in ROS 2 as a key middleware for inter-process communication.
25+
26+
It is part of the Eclipse Foundation and is widely used in Robotic Operating System (ROS) 2 as a key middleware framework for inter-process communication.
2627

2728
## Before you begin
2829

29-
ROS2 is available for Linux, macOS and Windows.
30-
This article provides a quick solution to install Cyclone DDS on Linux.
30+
This article provides a quick solution to install Cyclone DDS on Arm Linux.
3131

32-
Confirm you are using an Arm machine by running:
32+
Confirm you are using an Arm Linux machine by running:
3333

3434
```bash
3535
uname -m
@@ -43,58 +43,72 @@ aarch64
4343

4444
If you see a different result, you are not using an Arm computer running 64-bit Linux.
4545

46-
Also, you need install following before building Cyclone DDS:
46+
You need to install the following before building Cyclone DDS:
47+
48+
- C and C++ compilers (GCC)
49+
- Git
50+
- CMake
51+
- OpenSSL
52+
53+
For Ubuntu Linux run the commands below. For other Linux distributions, use the package manager to install the above software.
54+
55+
```bash
56+
sudo apt update
57+
sudo apt install -y gcc g++ git cmake libssl-dev
58+
```
4759

48-
- C Compiler (i.e. GCC).
49-
- GIT.
50-
- CMAKE (3.7 or later).
51-
- OpenSSL (1.1 or later)
60+
## How do I build Cyclone DDS?
5261

53-
## How do I build Cyclone DDS on Arm?
62+
You can install Cyclone DDS by building the source code.
5463

55-
We will install Cyclone DDS from source code.
56-
Clone the GitHub link and create a build folder.
64+
Clone the GitHub repository to create a build folder.
5765

5866
```bash
67+
cd $HOME
5968
git clone https://github.com/eclipse-cyclonedds/cyclonedds.git
6069
```
6170

62-
Once download, you can build and install Cyclone DDS on Linux.
63-
In order to verify the installation, we enable `BUILD_EXAMPLES` and `BUILD_TESTING` for further testing.
71+
Once downloaded, you can build and install Cyclone DDS.
6472

65-
```bash
73+
Enable `BUILD_EXAMPLES` and `BUILD_TESTING` so you can run the examples to verify the installation.
74+
75+
Here are the build and install commands:
76+
77+
```console
6678
cd cyclonedds
67-
mkdir build
68-
cmake -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=<install-location> ..
79+
mkdir build ; cd build
80+
cmake -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON ..
6981
cmake --build .
70-
cmake --build . --target install
82+
sudo cmake --build . --target install
7183
```
7284

85+
Cyclone DDS is now installed in `/usr/local`
86+
7387
{{% notice Note %}}
74-
The two cmake --build commands might require being executed with sudo depending on the <install-location>.
88+
If you don't want to install Cyclone DDS in the default location of `/usr/local` you can specify another location
89+
by adding `-DCMAKE_INSTALL_PREFIX=<install-prefix>` to the first `cmake` command with your alternate location.
7590
{{% /notice %}}
7691

92+
## How can I test Cyclone DDS?
7793

78-
## Quick test on Cyclone DDS
94+
To verify the installation, you can run the Hello World example from the build directory.
7995

80-
After success build up the code, you are able to use Cyclone DDS now.
81-
To verify the installation, you can run the Hello World example on cyclonedds/build/bin folder.
96+
Open two terminals and navigate to the `bin/` directory in each.
8297

83-
Open two terminals and move to the cyclonedds/build/bin/ directory and in each terminal run:
98+
Run the commands shown below in each tab in each of your two terminals:
8499

85100
{{< tabpane code=true >}}
86101
{{< tab header="Publisher" language="bash">}}
87-
cd cyclonedds/build/bin/
102+
cd $HOME/cyclonedds/build/bin/
88103
./HelloworldPublisher
89104
{{< /tab >}}
90105
{{< tab header="Subscriber" language="bash">}}
91-
cd cyclonedds/build/bin/
106+
cd $HOME/cyclonedds/build/bin/
92107
./HelloworldSubscriber
93108
{{< /tab >}}
94109
{{< /tabpane >}}
95110

96-
If you observe the following message from each of terminal, it's mean Cyclone DDS has been successfully installed on Arm machine.
97-
You are now ready to use Cyclone DDS.
111+
If you observe the following output from each of terminal, Cyclone DDS is running correctly on your Arm Linux machine.
98112

99113
{{< tabpane code=true >}}
100114
{{< tab header="Publisher" language="log">}}
@@ -106,3 +120,5 @@ You are now ready to use Cyclone DDS.
106120
=== [Subscriber] Received : Message (1, Hello World)
107121
{{< /tab >}}
108122
{{< /tabpane >}}
123+
124+
You are now ready to use Cyclone DDS.

data/stats_current_test_info.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ sw_categories:
7575
readable_title: Amazon Q Developer CLI
7676
tests_and_status:
7777
- ubuntu:latest: passed
78+
cyclonedds:
79+
readable_title: Cycleone DDS
80+
tests_and_status:
81+
- ubuntu:latest: passed
7882
azure-cli:
7983
readable_title: Azure CLI
8084
tests_and_status:

0 commit comments

Comments
 (0)