rticonnextdds-connector-go

RTI Connector for Connext DDS

RTI Connector for Connext DDS is a quick and easy way to access the power and
functionality of RTI Connext DDS.
It is based on XML-Based Application Creation and Dynamic Data.

Connector was created by the RTI Research Group to quickly and easily develop demos
and proofs of concept. It can be useful for anybody that needs
a quick way to develop an application communicating over the Connext DDS Databus.
Thanks to the binding with multiple programming languages, you can integrate
with many other available technologies.

The Connector library is provided in binary form for select architectures. Language bindings and examples are provided in source format.

Go Connector leverages cgo to call its C library;
this detail is hidden in a Go wrapper.

Getting started

Be sure you have golang installed (we tested with golang v1.17).

Install:

$ go get github.com/rticommunity/rticonnextdds-connector-go

Import:

import "github.com/rticommunity/rticonnextdds-connector-go"

Please see examples for usage details.

Static Build

To build your application statically, it requires RTI Connext DDS static libs (libnddscorez.a, libnddscz.a). They are located in $NDDSHOME/lib/YOUR_ARCHITECTURE.

$ cp $NDDSHOME/lib/YOUR_ARCHITECTURE/libnddscorez.a ./static_lib/YOUR_ARCHITECTURE/
$ cp $NDDSHOME/lib/YOUR_ARCHITECTURE/libnddscz.a ./static_lib/YOUR_ARCHITECTURE/

Then, you can run go build with -tags static to build.

$ go build -tags static ./examples/simple/writer/writer.go

Platform support

Go Connector builds its library for few select architectures. If you need another architecture, please contact your RTI account manager or [email protected].

If you want to check the version of the libraries you can run the following command:

strings librtiddsconnector.so | grep BUILD

Threading model

The Connector Native API does not yet implement any mechanism for thread safety. Originally, the Connector native code was built to work with RTI Prototyper and Lua. That was a single-threaded loop. RTI then introduced support for JavaScript, Python, and Go. For now, you are responsible for protecting calls to Connector. Thread safety
may be implemented in the future.

Support

Connector is an experimental RTI product. If you have questions, please use the RTI Community Forum. If you would like to report a bug or have a feature request, please create an issue.

Documentation

The best way to get started with Connector is to look at the
examples; you will see that it is very easy to use.

Please see the API documentaiton for more information.

Contributing

Contributions to the code, examples, documentation are really appreciated. Please follow the steps below for contributions.

  1. Sign the CLA.
  2. Create a fork and make your changes.
  3. Run tests and linters (make test lint).
  4. Push your branch.
  5. Open a new pull request.

GitHub

https://github.com/rticommunity/rticonnextdds-connector-go