GithubHelp home page GithubHelp logo

eprosima / fast-dds-spy Goto Github PK

View Code? Open in Web Editor NEW
6.0 7.0 4.0 2.09 MB

eProsima Fast DDS Spy is a CLI interactive tool that allows to introspect a DDS network in human readable format. Looking for commercial support? Contact [email protected]

Home Page: https://eprosima.com

License: Apache License 2.0

CMake 6.00% C++ 70.20% Dockerfile 0.24% PowerShell 0.33% Python 23.22%
dds fastdds ros2

fast-dds-spy's Issues

fastddsspy with idl type

image

IDL include a structure HelloWorld, HelloWorld includes a struct point, point includes a struct timestamp(such as HelloWorld.idl),in this way, fastddsspy will come to Segmentation fault. However, if IDL include a structure HelloWorld, HelloWorld includes a struct point, point don't include any struc (like HelloWorld_OK.idl), fastddsspy will run ok.

HelloWorld_OK.idl
struct point{
short x;};
struct HelloWorld{
point pos;
unsigned long index;};

HelloWorld.idl
struct timestamp{
short h;};
struct point{
timestamp ts;
short x;};
struct HelloWorld{
point pos;
unsigned long index;};

step1:
fastddsgen -typeobjcet HelloWorld.idl

step2:
DomainParticipantQos pqos;
pqos.wire_protocol().builtin.typelookup_config.use_server = true;

eprosima::fastdds::dds::DomainParticipant* participant_;
participant_ = DomainParticipantFactory::get_instance()->create_participant(0, pqos);

eprosima::fastdds::dds::TypeSupport type_;
type_(new HelloWorldPubSubType())
type_.register_type(participant_);
type_->auto_fill_type_object(false);
type_->auto_fill_type_information(true);

step3:
HelloWorld hello_;
hello_.index(0);
hello_.pos().ts().h(10);
hello_.pos().x(10);
writer_->write(&hello_);

Discovery server and fastdds spy

  • setting the FASTRTPS_DEFAULT_PROFILES_FILE environmental variable to a configuration pointing to a discovery server.
  • fastddsspy only discovers the participants that are the discovery servers themselfs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.