Giter Site home page Giter Site logo

rqt_ez_publisher's Introduction

rqt_ez_publisher's People

Contributors

felixduvallet avatar otl avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rqt_ez_publisher's Issues

Removing an element of a MultiArray doesn't actually remove it from being published

(I found this to be unexpected behavior when testing your fix for #17 , but this could just be a Garbage In -> Garbage Out problem. Feel free to close as wontfix.)

When publishing a MultiArray topic, removing an element in the GUI doesn't actually remove it from being published on the topic.

For example,

  • Publish a MultiArrayFoo with one element -> len(data) = 1
  • Add an additional element -> len(data) = 2
  • Remove element data[1] -> len(data) = 2 still (I would have expected 1), and the last stored value gets published in data[1].

On a related note, removing an element that is not the last (e.g., data[1] with 3 elements) also keeps publishing the last stored value in data[1]. Perhaps setting the value to zero could be more intuitive.

Is it possible to rename the window title?

When starting rqt_ez_publisher directly (i.e., rosrun rqt_ez_publisher rqt_ez_publisher) the window title is always rqt_ez_publisher__EzPublisher - rqt.

Is there a way to change this? I started exploring your code (you set the widget title when running it inside rqt), but got pretty far into the qt_gui code before getting super lost.

Running on hydro

rosrun rqt_ez_publisher rqt_ez_publisher

Following exception:

michele@darpaws5:~$ rosrun rqt_ez_publisher rqt_ez_publisher
Traceback (most recent call last):
File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_ez_publisher/ez_publisher_widget.py", line 23, in add_slider_from_combo
self.add_slider_by_text(str(self._combo.currentText()))
File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_ez_publisher/ez_publisher_widget.py", line 90, in add_slider_by_text
results = self._model.register_topic_by_text(text)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_ez_publisher/ez_publisher_model.py", line 235, in register_topic_by_text
self._add_publisher_if_not_exists(topic_name, message_class)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_ez_publisher/ez_publisher_model.py", line 200, in _add_publisher_if_not_exists
topic_name, message_class)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_ez_publisher/publisher/topic_publisher_with_timer.py", line 13, in init
topic_name, message_class)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_ez_publisher/publisher/topic_fill_header_publisher.py", line 10, in init
topic_name, message_class)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_ez_publisher/publisher/topic_publisher.py", line 9, in init
topic_name, message_class, queue_size=100)
TypeError: init() got an unexpected keyword argument 'queue_size'

And GUI displays only list of topics:
topic(+data member) name ..... all clear
Nothing

Fails on nested topics

Thanks for the great tool.

I found an issue when attempting to publish to a nested topic, for example the following Subscribers:

rospy.Subscriber('/some/topic', Float32)
rospy.Subscriber('/some/topic/again', Float32)
rospy.Subscriber('/this/works', Float32)

Selecting /some/topic works, but /some/topic/again produces the following (very frequent) error message:

[WARN] [WallTime: 1459858994.495491] 'again' is not in list
[WARN] [WallTime: 1459858994.513921] 'again' is not in list
[WARN] [WallTime: 1459858994.530778] 'again' is not in list
[WARN] [WallTime: 1459858994.547622] 'again' is not in list

uint8 type treated as string

I am writing to a topic that has an array of type uint8 in it. When I adjust the slider, I get the following error message. It appears that python is handling the uint8 array as an array of strings. When I change the datatype of the array to uint32, I no longer get this error.
Here is the traceback:

Traceback (most recent call last):
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_ez_publisher/widget/int_value_widget.py", line 17, in slider_changed
    self.publish_value(value)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_ez_publisher/widget/value_widget.py", line 73, in publish_value
    self._array_index, value)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_ez_publisher/ez_publisher_model.py", line 56, in set_msg_attribute_value
    array[array_index] = value
TypeError: 'str' object does not support item assignment

And here is the message definition:

# Auxilliary Override Command Message

# Command Types
uint8 AUX_COMMAND_DISABLED = 0
uint8 AUX_COMMAND_SERVO = 1
uint8 AUX_COMMAND_MOTOR = 2

Header header
uint8[14] type_array
float32[14] values

--slider-file option fail in indigo

ogura@smilebot-beta1:~$ rosrun rqt_ez_publisher rqt_ez_publisher --slider-file aa
PluginManager._load_plugin() could not load plugin "rqt_ez_publisher/EzPublisher":
Traceback (most recent call last):
File "/opt/ros/indigo/lib/python2.7/dist-packages/qt_gui/plugin_handler.py", line 98, in load
self._load()
File "/opt/ros/indigo/lib/python2.7/dist-packages/qt_gui/plugin_handler_direct.py", line 54, in _load
self._plugin = self._plugin_provider.load(self._instance_id.plugin_id, self._context)
File "/opt/ros/indigo/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "/opt/ros/indigo/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "/opt/ros/indigo/lib/python2.7/dist-packages/rqt_gui_py/ros_py_plugin_provider.py", line 60, in load
return super(RosPyPluginProvider, self).load(plugin_id, plugin_context)
File "/opt/ros/indigo/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "/opt/ros/indigo/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 94, in load
return class_ref(plugin_context)
File "/opt/ros/indigo/lib/python2.7/dist-packages/rqt_ez_publisher/ez_publisher_plugin.py", line 33, in init
load_from_file(args.slider_file)
NameError: global name 'load_from_file' is not defined

quaternion -> rpy

quaternion is very difficult to change by slider.
convert it to rpy gui.

publishing rate

Nice tool! it will be great to decide the publishing rate of the messages.

range: max value 10000

I'm using rqt_ez_publisher to publish some float32 topic, unfortunately max range is -10000 10000.

Pls update to be a float32 maxrange.

Slider Step

I'd like to set the sliders step if it isn't already possible.

v0.3.1 problem

I am trying to publish a topic of type joint_trajectory http://docs.ros.org/jade/api/trajectory_msgs/html/msg/JointTrajectory.html and a node is correctly subscribing to the topic. This worked perfectly with v0.3.0 but since v0.3.1 the tool fails to show the topic attributes with the following error:

[WARN] [WallTime: 1462037896.472686] 'positions' is not in list
File "/opt/ros/indigo/lib/python2.7/dist-packages/rqt_ez_publisher/ez_publisher_widget.py", line 102, in add_slider_by_text self.add_slider_by_text(string)

I tried v0.3.0 and it worked well, so I think it is an issue with the new version.

Thanks!

remove seq of header

seq is overwritten by system, so even if there are seq GUI, it is useless.
Please do not create the GUI.

auto repeat

ros sometimes requires auto repeated topic.

Update document

Add description for setting file.

  • save and load
  • command line

Does not work for custom actions defined in own catkin workspace

Hi,

I have specified an action in my own workspace here:
/home/koenlek/hydro_catkin/src/semantic_turtle_meta/st_navigation/action/GotoNode.action

This automatically generates to related messages here:
/home/koenlek/hydro_catkin/devel/share/st_navigation/msg/GotoNodeAction[subaction_type].msg

However, your plugin throws an error when I want to publish to e.g. /move_base_topo/goal the error is:
IOError: [Errno 2] No such file or directory: u'/home/koenlek/hydro_catkin/src/semantic_turtle_meta/st_navigation/msg/GotoNodeActionGoal.msg'

Clearly, it is looking in the wrong directory. Maybe make sure to also look into the devel folder (I would suggest to first try src, then devel, then install, and only continue looking if the current failed)?

How to install?

Hello I am wondering how to install this plugin. The install section of the README has been left blank, and I can't find information online about installing rqt plugins.

Running catkin_make in the directory root does not seem to work.

Creating a build directory, running cmake .. then make also does nothing (cmake generates the configuration files but make does nothing, and I receive a 'no package error' when I try to run).

Am I missing something or just being incredibly stupid?

Thanks

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.