Skip to content

eProsima/ShapesDemo-TypeSupport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShapesDemo-TypeSupport

Shapes Demo TypeSupport package to use with eProsima Fast DDS Shapes Demo on ROS 2 installations.

It can be built on a ROS 2 environment by running:

colcon build

It can then be used to interact with topics created by Shapes Demo like so:

source install/setup.bash
ros2 topic echo /Square

The expected output is something similar to the following.

color: RED
x: 175
y: 215
shapesize: 30
---
color: RED
x: 169
y: 210
shapesize: 30
---

The following commands will start publishing on one of the Shapes topics.

source install/setup.bash
ros2 topic pub /Square shapes_demo_typesupport/idl/KeylessShapeType "{ color: BLUE, x: 155, y: 150, shapesize: 30}"

Apart from seeing a blue square appear on the Shapes Demo window, the terminal will show something similar to the following.

publisher: beginning loop
publishing #1: shapes_demo_typesupport.idl.KeylessShapeType(color='BLUE', x=155, y=150, shapesize=30)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages