Giter Site home page Giter Site logo

rqt_topic's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rqt_topic's Issues

[ros 2][Topic Monitor] Don't print `array('d', ...)` for sequences

To reproduce:

# Terminal 1
ros2 launch dummy_robot_bringup dummy_robot_bringup.launch.py
# Terminal 2
rqt
  • In rqt, open the "Topic Monitor" plugin (Plugins->Topics->Topic Monitor)
  • Subscribe to /joint_state.
  • The position/velocity/effort elements will be logged like
position    sequence<double>    array('d', [0.60123213, 0.60123213])
velocity    sequence<double>    array('d')
effort      sequence<double>    array('d')

It would be nicer to see:

position    sequence<double>    [0.60123213, 0.60123213]
velocity    sequence<double>    []
effort      sequence<double>    []

TypeError with Python3 ros distro and rqt

TL;DR Please merge #7 as it fixes a python3 related bug

I'm running a source-compiled python3 ROS distro with rqt and moveit.
When listening to JointState Messages, rqt complains:

[ERROR] [1577992899.623362]: bad callback: <bound method TopicInfo.message_callback of <rqt_topic.topic_info.TopicInfo object at 0x7f8c05e47ef0>>
Traceback (most recent call last):                                                                                                                                         
  File "/home/user/ros2/melodic/lib/python3.7/site-packages/sensor_msgs/msg/_JointState.py", line 113, in serialize                                                      
    buff.write(_get_struct_3I().pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))                                                                          
TypeError: string argument expected, got 'bytes' 

Applying #7 fixes this issue (StringIO buffer is replaced with BytesIO on Python 3`).

Open source rewrite of rqt_topic

@wjwwood not sure who the maintainer is of this repo but I've got approval to open source our (Apex.AI's) version of rqt_topic.

It's a major rewrite and most likely would be easiest with one big PR.

Before making it I first wanted to check if it'd even be accepted here.

Also, not sure if it's possible but I could also be added as a maintainer here for the repo if it is now orphaned.

Just let me know how you'd like to proceed - excited to give it back to the community!

Update Frequency of topic values

The values of the monitored topics updates around every second in the monitor. Is there a way to get faster update?
I have verified the realtime values using rostopic echo.

C++ version of rqt_topic

I am trying to develop my own GUI for ROS. It is somewhat like rqt but with more specific plugins for my robot.
I build it using qt creator, and since I'm pretty new in ROS I tried to combine some sources to the GUI with my limited knowledge.
I use C++ to make the GUI, and I want to add a plugin to visualize the rostopic data (at least for diagnostic), and this is the plugin that I have been searching for.
It seems the code here is written in python, and I am having difficulties on combining them because of my lack understanding of python.
Either I need to translate this the rqt_topic from python to c++, or create a callback function in my GUI to publish "rostopic echo /diagnostics".
Do you have any ideas, suggestion, or reference?
Thank you.

sorting bandwidth

Sorting the topics based on Bandwidth is not working properly. Could you please address this issue? it might have to do with the sort not considering the units (e.g. MB vs KB).

rqt_topic crashes when cleaning up old topics.

Traceback (most recent call last):
  File "/opt/ros/melodic/lib/python3.7/site-packages/rqt_topic/topic_widget.py", line 183, in refresh_topics
    for topic_name in self._topics.keys():
RuntimeError: dictionary changed size during iteration

Simply removing line 197 of topic_widget fixes the issue. I'm not sure why the old topic was being deleted from the dict, since the next line of code overwrites the _topics dict with the new one. Is there some reason self._topics needs to be empty before it's overwritten?

show leaf topics in topic monitor

Hi,

I would like to show all topics, including the topics without subs or pubs (leaf topics).

Is there a possibility for this in the rqt topic monitor?

Thanks

items in lists are not removed if list in message is empty

When a message contains a list and the list has reduced to zero, the old list items are still shown. As the code which removes the list items is not reached when the list is empty.

The code that executes the deletion is

# remove obsolete children
if len(message) < self._tree_items[topic_name].childCount():
for i in range(len(message), self._tree_items[topic_name].childCount()):
item_topic_name = topic_name + '[%d]' % i
self._recursive_delete_widget_items(self._tree_items[item_topic_name])

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.