Skip to content

jverbeke/python_gui

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GUI in python

Collection of small programs to use with ros.

gui_sender.py

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.

usage

roscore
roslaunch python_gui gui_sender.launch

or

roscore
rosrun python_gui gui_sender.py

or

roscore
cd scripts
./gui_sender.py

parameters

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 /)

orocos integration

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 78.3%
  • Lua 12.3%
  • CMake 9.1%
  • Makefile 0.3%