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.08 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.06% C++ 70.70% Dockerfile 0.24% PowerShell 0.33% Python 22.66%
dds fastdds ros2

fast-dds-spy's Introduction

Fast-DDS-spy

License Issues Forks Stars test

eProsima Fast DDS Spy is a CLI interactive tool that allows to introspect a DDS network in human readable format. It is possible to query the network about the DomainParticipants connected, their endpoints (DataWriters and DataReaders) and the topics they communicate in. It is also possible to see the user data sent through network topics in a schematic format in run time.

Documentation

You can access the documentation online, which is hosted on Read the Docs.

Installation Guide

The instructions for installing the Fast DDS Spy application from sources and its required dependencies on a Linux environment are provided below. These installation instructions are a summarized version of the complete installation guide available online. Instructions for installing Fast DDS Spy on a Windows platform can be found here.

Requirements

eProsima Fast DDS Spy requires the following tools to be installed in the system:

# apt packages
sudo apt install -y \
    cmake \
    g++ \
    pip \
    wget \
    git \
    libasio-dev \
    libtinyxml2-dev \
    libssl-dev \
    libyaml-cpp-dev

# python packages
pip3 install -U \
    colcon-common-extensions \
    vcstool

Colcon installation

  1. Create a Fast-DDS-spy directory and download the .repos file that will be used to install Fast DDS Spy and its dependencies:

    mkdir -p ~/Fast-DDS-spy/src
    cd ~/Fast-DDS-spy
    wget https://raw.githubusercontent.com/eProsima/Fast-DDS-spy/main/fastddsspy.repos
    vcs import src < fastddsspy.repos
  2. Build the packages:

    colcon build --packages-up-to fastddsspy_tool

Run an application

To run the Fast DDS Spy application, source the installation environment and execute the executable file that has been installed in <install-path>/fastddsspy_tool/bin/fastddsspy:

# Source installation
source <install-path>/setup.bash

# Execute Fast DDS Spy
fastddsspy_tool
# Use <fastddsspy_tool --help> to see the tool manual

Getting Help

If you need support you can reach us by mail at [email protected] or by phone at +34 91 804 34 48.

fast-dds-spy's People

Contributors

cferreiragonz avatar dependabot[bot] avatar irenebm avatar jepemi avatar jparisu avatar juanlofer-eprosima avatar luciaechevarria99 avatar rsanchez15 avatar tempate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.