Collection of small programs to use with ros.
A simple interface that reads from an xml file with the format
<list>
<button name='Start' event='e_start' tooltip='start the robot'/>
<button name='Stop' event='e_stop'/>
</list>
Each button group produces a button that, if pressed sends the named event. The default topic is /events, but can be altered using the ros parameter 'topic_name', see gui_sender.launch for an example on how to change this. The tooltip is an optional field (text when hovering over a button). The xml file is stored in the rosparam "xml_button_file", that defauts to default.xml in the xml directory of this package.
roscore
roslaunch python_gui gui_sender.launch
or
roscore
rosrun python_gui gui_sender.py
or
roscore
cd scripts
./gui_sender.py
See xml/gui_sender.launch for an example with the default values.
- topic_name: name of the topic to publish the events on
- xml_button_file_pkg: package where to find the xml_button_file, its location is apended to the xml_button_file value
- xml_button_file: location of the xml file with the event buttons to create: full path or path from xml_button_file_pkg location (start with /)
The file 'lua_components/signal_echo.lua' is a an orocos component realized in lua, that reads a std_msgs/String from a topic and echos as a normal string. to connect easily with components running rFSM.