Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when subscribing to Sensor_info topic it causes a trace in takktile_node.py #2

Open
ablasdel opened this issue Feb 12, 2015 · 2 comments

Comments

@ablasdel
Copy link
Contributor

This line seems to pass a 2d array (self.alive) to the publisher here: https://github.com/harvardbiorobotics/takktile_ros/blob/master/src/takktile_node.py#L125

but the message is expecting a 1d array:
https://github.com/harvardbiorobotics/takktile_ros/blob/master/msg/Info.msg

It looks like either 1 info message needs to be published per Takktile instance or the info message needs to be built to accommodate an array of the current info messages.

The error that occurs once the topic is accessed:

contact threshold: 5
temp lowpass: 0.001
[INFO] [WallTime: 1423771663.824648] /takktile_24852_1423771663689 node initialized
Number of boards found =  1
UIDs  [u'435543438323FFFFA0FFC1006100']
Traceback (most recent call last):
  File "/home/user/rosmake_ws/takktile_ros/src/takktile_node.py", line 225, in <module>
    TakkNode(XYZ_MAP, FRAME_ID, TEMPERATURE_LOWPASS, CONTACT_THRESHOLD)
  File "/home/user/rosmake_ws/takktile_ros/src/takktile_node.py", line 125, in __init__
    info_pub.publish(frame_id, xyz_map, self.alive )
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rospy/topics.py", line 802, in publish
    raise ROSSerializationException(str(e))
rospy.exceptions.ROSSerializationException: field indexes[] must be an integer type
@p93sb
Copy link

p93sb commented Jun 11, 2015

Hello,
I'm integrating tactiles sensors in ROS and I have found the same problem as you. Have you found a solution to it?

Thanks for your help

@ablasdel
Copy link
Contributor Author

At the moment I am not using takktiles, when I was if I had solved this I probably would have opened a pull request. Sorry!

I doubt a lot is depending on this package so changing the message is probably acceptable. You should try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants