ros-visualization / rqt_publisher Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://wiki.ros.org/rqt_publisher
Home Page: http://wiki.ros.org/rqt_publisher
When using rqt_publisher
under dashing, I get a traceback when closing the application on OSX. This might be related to breaking changes in dashing related to passing the context object to rcl_init()
.
See here: https://github.com/ros2/rcl/blob/master/rcl/include/rcl/init.h#L82 and the related PR: ros2/rcl#336
Traceback (most recent call last):
File "/Users/karsten/workspace/osrf/ros2_full/build/rqt_gui_py/src/rqt_gui_py/rclpy_spinner.py", line 32, in run
executor.spin_once(timeout_sec=1.0)
File "/Users/karsten/workspace/osrf/ros2_full/install/lib/python3.7/site-packages/rclpy/executors.py", line 695, in spin_once
handler, entity, node = self.wait_for_ready_callbacks(timeout_sec=timeout_sec)
File "/Users/karsten/workspace/osrf/ros2_full/install/lib/python3.7/site-packages/rclpy/executors.py", line 649, in wait_for_ready_callbacks
return next(self._cb_iter)
File "/Users/karsten/workspace/osrf/ros2_full/install/lib/python3.7/site-packages/rclpy/executors.py", line 532, in _wait_for_ready_callbacks
self._context.handle)
RuntimeError: Failed to initialize wait set: the given context is not valid, either rcl_init() was not called or rcl_shutdown() was called., at /Users/karsten/workspace/osrf/ros2_full/src/ros2/rcl/rcl/src/rcl/wait.c:130
This issue might be one example for branching out to dashing-devel
as described here: #10
Hi,
I tried the rqt publisher plugin for ROS2 crystal and I found this bug:
If I create a publisher on the topic /my_topic
, then it's possible to start publishing messages at the specified frequency by clicking on the empty box in the topic column.
If I create a publisher on the topic my_topic
, that empty box is not displayed. However I'm still able to publish messages one by one by right clicking on the publisher and selecting Publish selected once
.
From what I have seen so far ROS2 allows to use topics name without the forward slash, so also in rqt it should be possible to publish messages through it.
If on the other hand you don't want to allow users to publish messages on topics without the forward slash, you should at least prompt a warning that the specified topic name is not correct.
Hello everyone,
I have an issue about rqt gui. When I try to publish string[] via using rqt message publisher, it returns [get_message_class]: Malformed message_type: sequence
Is there any solution? Thanks for everything.
Sometimes I prefer the message published to contain actual timestamp.
In rclpy I use node.get_clock().now().to_msg()
to fill a stamp field in header of stamped messages.
Maybe add option to evaluate now()
or something like that?
Traceback (most recent call last):
File "/Users/brawner/workspace/ros2_ws/install/rqt_publisher/lib/python3.7/site-packages/rqt_publisher/publisher.py", line 90, in add_publisher
self._add_publisher(publisher_info)
File "/Users/brawner/workspace/ros2_ws/install/rqt_publisher/lib/python3.7/site-packages/rqt_publisher/publisher.py", line 118, in _add_publisher
msg_module = getattr(module, message_name)
AttributeError: module 'std_msgs.msg' has no attribute 'Int32[]'
Hi everyone, I have been using rqt to publish messages to test my applications, however I still haven't found a way to publish a message that includes an array.
In my custom message I have a variable size array declared as uint8[]. I notice in rqt that the expected type is "sequence".
I have tried different expressions, but couldn't figure out the correct one. Could someone provide an example please?
When opening rqt_plot
I see the following error messages:
[ERROR] [get_message_class]: Malformed message_type: rcl_interfaces/msg/ParameterEvent
TopicCompleter.update_topics(): could not get message class for topic type "rcl_interfaces/msg/ParameterEvent" on topic "/parameter_events"
This error occurs for every type. I believe it's related to the change of type descriptions a.k.a <pkg_name>/msg/<MessageName>
On Rqt with Win10, trying to open rqt_publisher yields this error and doesn't work :
PluginManager._load_plugin() could not load plugin "rqt_publisher/Publisher":
Traceback (most recent call last):
File "c:\opt\ros\galactic\x64\lib\site-packages\qt_gui\plugin_handler.py", line 102, in load
self._load()
File "c:\opt\ros\galactic\x64\lib\site-packages\qt_gui\plugin_handler_direct.py", line 55, in _load
self._plugin = self._plugin_provider.load(self._instance_id.plugin_id, self.context)
File "c:\opt\ros\galactic\x64\lib\site-packages\qt_gui\composite_plugin_provider.py", line 72, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "c:\opt\ros\galactic\x64\lib\site-packages\qt_gui\composite_plugin_provider.py", line 72, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "c:\opt\ros\galactic\x64\lib\site-packages\rqt_gui_py\ros_py_plugin_provider.py", line 64, in load
return super(RosPyPluginProvider, self).load(plugin_id, ros_plugin_context)
File "c:\opt\ros\galactic\x64\lib\site-packages\qt_gui\composite_plugin_provider.py", line 72, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "c:\opt\ros\galactic\x64\lib\site-packages\rqt_gui\ros_plugin_provider.py", line 91, in load
raise e
File "c:\opt\ros\galactic\x64\lib\site-packages\rqt_gui\ros_plugin_provider.py", line 80, in load
module = builtin.import(
File "c:\opt\ros\galactic\x64\lib\site-packages\rqt_publisher\publisher.py", line 60, in
numpy.float16, numpy.float32, numpy.float64, numpy.float128,
File "c:\opt\ros\galactic\x64\lib\site-packages\numpy_init.py", line 313, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float128'
To solve it, I had to remove in rqt_publisher/src/rqt_publisher/publisher.py
at line 60 numpy.float128, and it seems to run smoothly without it.
try:
import numpy
_numeric_types += [
numpy.int8, numpy.int16, numpy.int32, numpy.int64,
numpy.float16, numpy.float32, numpy.float64,
]
I tested the foxy-devel branch and found that rqt_publisher doesn't responding to a change in a message. I think the problem is in commit where _change_publisher_expression
was deleted but https://github.com/ros-visualization/rqt_publisher/blob/foxy-devel/src/rqt_publisher/publisher.py#L158 doesn't change
Given the latest changes in ROS2 for the dashing release, I believe it makes sense to branch out to a dashing-devel
branch.
One of the changing is for example the exposure of history-depth
as a QoS.
Hi,
On Ubuntu 22.04 with ROS2 Humble I'm unable to publish sensor_msgs/msg/JointState with user-specified values. I suppose this might be related to #27, #28.
And this is what I'm receiving (note that the std_msgs/msg/Bool seems to be working).
$ ros2 topic echo --once /test
header:
stamp:
sec: 0
nanosec: 0
frame_id: ''
name: []
position: []
velocity: []
effort: []
---
$ ros2 topic echo --once /test2
data: true
---
Package version:
$ apt show ros-humble-rqt-publisher
Package: ros-humble-rqt-publisher
Version: 1.5.0-1jammy.20220909.020605
Priority: optional
Section: misc
Maintainer: Dirk Thomas <[email protected]>
Installed-Size: 109 kB
Depends: python3-catkin-pkg-modules, ros-humble-python-qt-binding (>= 0.2.19), ros-humble-qt-gui-py-common, ros-humble-rqt-gui, ros-humble-rqt-gui-py, ros-humble-rqt-py-common, ros-humble-ros-workspace
Homepage: http://wiki.ros.org/rqt_publisher
Download-Size: 23.8 kB
APT-Manual-Installed: no
APT-Sources: http://packages.ros.org/ros2/ubuntu jammy/main amd64 Packages
Description: rqt_publisher provides a GUI plugin for publishing arbitrary messages with fixed or computed field values.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.