- Install ROS-2 Humble
- Install Micro-XRCE-Agent
- Install Micro-XRCE-Client library
- Install Integration Services :
- Run XRCE Agent using the following command
cd /usr/local/bin && MicroXRCEAgent udp4 -p 2019
- In the DDS_Server folder, compile the Server file as
gcc Server.c -lmicrocdr -lmicroxrcedds_client
- Run the Server script as
./a.out 127.0.0.1 2019
- Source ROS 2 installation
- Source Integration Services from your workspace
- Run the service using the following command
integration-service fastdds_server__addtwoints.yaml
from the DDS_Server folder
- Source ROS-2 installation
- Run the ROS-2 client as
ros2 service call /add_two_ints example_interfaces/srv/AddTwoInts "{a: 5, b: 17}"
- Source ROS-2 installation
- Run the ROS-2 server as
ros2 run demo_nodes_cpp add_two_ints_server
- Source ROS 2 installation
- Source Integration Services from your workspace
- Run the service using the following command
integration-service ros2_server__addtwoints.yaml
from the ROS2_Server folder
- Run XRCE Agent using the following command
cd /usr/local/bin && MicroXRCEAgent udp4 -p 2019
- In the ROS2_Server folder, compile the Client file as
gcc Client.c -lmicrocdr -lmicroxrcedds_client
- Run the Client script as
./a.out 127.0.0.1 2019