Giter VIP home page Giter VIP logo

rqt_state's Introduction

rqt_state

QT package, enabling to define topic boxes and assign topic names to them

Usage

  1. Add Qt Text Edit Input Widget to the frame.
  2. Add dynamic property with the string field "topic_name" to that widget.
  3. Go to main_window.cpp and add following lines to MainWindow::MainWindow constructor
m_qt_name_to_object[ui.topic_viewer->objectName()] = ui.topic_viewer;
m_qnode.addTopicWidget(ui.topic_viewer->objectName(), ui.topic_viewer->property("topic_name").toString(), STATS_DROPPED_MSGS);
  1. Change ui.topic_viewer to the name of the object on ui.

  2. If the topic have msg_type other than Statistics or Int64, do the following steps:

    1. Add msg_enum in enum_msg_type.h
    2. Add callback prototype to qnode.hpp
    3. Add callback implementation to qnode.cpp, with mandatory Q_EMIT loggingUpdated(qt_msg), where qt_msg is the QPair<Qstring, QString> of qt object_name on ui and string, that is going to be displayed in box.
    4. Add ros::subscriber to the QNode::addTopicwidget with the pattern presented in INT_64 and STATS_* msg_types, but use your own callback and mgs_type. If you want to monitor topic, then use the pattern in INT_64. If you want to monitor statistics on topic, then use the pattern in STATS* msg_types.

Few comments and known bugs

  1. To enable statistics write rosparam set /enable_statistics true in terminal and only after that launch ondes
  2. The information about topic stats will only be published, if there is some node is subscribed to the topic. Seems, we cannot escape that, because this is how ROS works and it is impossible to get statistics from dead leafs(topics with no subscribers).

rqt_state's People

Stargazers

 avatar

Watchers

 avatar

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.