kaserf / rosdashboard

ROS Dashboard is a graphical tool to allow you easy debugging and monitoring of your robot. It is designed to give you all the flexibility to extend the tool however you want to fit your scenario best.
7 stars 1 forks source link

Fix type problems in properties store #1

Closed kaserf closed 12 years ago

kaserf commented 12 years ago

The current properties have somehow a problem with different string types. The data that is retrieved from Qt input fields is a Qt.String but rospy requests normal python strings. Currently it is cast to string manually when using it, but it should be done in a nicer way (storing proper strings in the beginning).

Example:

datafield = getattr(data, str(self.props[self.DATAFIELD].value))
kaserf commented 12 years ago

fixed by casting to str at the origin.