Giter Site home page Giter Site logo

rqt_publisher's People

Contributors

130s avatar ablasdel avatar arne48 avatar cottsay avatar dirk-thomas avatar dorianscholz avatar gbiggs avatar martonmiklos avatar matthijsburgh avatar mikaelarguedas avatar mlautman avatar mrdanbrooks avatar rhaschke avatar sloretz avatar trainman419 avatar vrabaud avatar

Stargazers

 avatar  avatar

Watchers

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

rqt_publisher's Issues

[ROS2] [RQT_PUBLISHER] Traceback when closing/exiting

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

ROS2: forward slash required in topic name

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.

Malformed message_type: sequence<string>

Hello everyone,

  • Ubuntu 20.04, ROS2 Galactic

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.

Ros2 port: If an invalid message type is specified, rqt_publisher will cause rqt_gui will crash

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[]'

[ROS2][RQT_PUBLISHER] types are not displayed correctly

There is a mismatch in the types. When choosing the type of the message, it's getting displayed without the newly introduced msg or srv middle part of it. However, when restarting, the latest added publisher has the correct type assigned.

See the following screenshot for clarity.
Screen Shot 2019-05-28 at 4 05 13 PM

ROS2: Publish an array with rqt

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?

[ROS2][RQT_PLOT] malformed message type

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>

ROS2 - Windows 10 : AttributeError: module 'numpy' has no attribute 'float128'

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,
]

[ROS2] Consider branching out to `dashing-devel`

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.

ROS2: Cannot set/publish JointState with user-specified values

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.

This is what I'm publishing:
Screenshot from 2022-09-21 14-29-53

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.

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.