This project implements a mount that connects to the DDS shapes topics that are used in interoperability demos. The project uses RTI Connext, and has been verified with version 5.3.0.
If you do not have corto installed yet, do:
curl https://corto.io/install-dev-src | sh
You also must have RTI Connext DDS (www.rti.com) installed on your machine. See RTI Connext documentation on how to setup the environment for building.
Then, to download and install this project to your local package repository, do:
git clone https://github.com/SanderMertens/driver-mnt-connext-shapes
bake driver-mnt-connext-shapes
You can now use the mount in your projects.
The mount can be used in a project by adding a configuration file to the config
folder of the project that contains JSON similar to this:
{
"id": "config/square_mount",
"type": "driver/mnt/connext/shapes/mount",
"value": {
"domainId": 1,
"topic": "Square",
"query.from": "data/squares"
}
}
This will listen for the topic Square
on domain 1
, and mount data under data/squares
. The mount object will be called square_mount
, and is located in the config
scope.
The mount uses the MyShapeType
type (see model.cx
) type to instantiate shapes in the corto store. This type mirrors the DDS ShapeType
type, but adds semantic annotations to the members. These unambiguously let applications know what the meaning of a member is, which can then be interpreted by applications that have no built-in knowledge about the shape type.