otl / rqt_ez_publisher Goto Github PK
View Code? Open in Web Editor NEWROS topic publisher GUI for rqt
Home Page: http://wiki.ros.org/rqt_ez_publisher
License: BSD 3-Clause "New" or "Revised" License
ROS topic publisher GUI for rqt
Home Page: http://wiki.ros.org/rqt_ez_publisher
License: BSD 3-Clause "New" or "Revised" License
(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,
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.
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.
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
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
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
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 is very difficult to change by slider.
convert it to rpy gui.
It is useful if the setting is shared
Nice tool! it will be great to decide the publishing rate of the messages.
save checkbox state
I'm using rqt_ez_publisher to publish some float32 topic, unfortunately max range is -10000 10000.
Pls update to be a float32 maxrange.
save value of spin box and restore it.
this version support builtin only
I'd like to set the sliders step if it isn't already possible.
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!
seq is overwritten by system, so even if there are seq GUI, it is useless.
Please do not create the GUI.
more small button is suitable for close
ros sometimes requires auto repeated topic.
reset value to zero.
input size of array first, and build multiple sliders.
Add description for setting file.
Could you please add this package to the noetic distribution of ROS? Thank you so much!
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)?
if there are header/stamp, set current time.
this enable static transform publisher
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
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.