tfoote / foote-ros-pkg

Automatically exported from code.google.com/p/foote-ros-pkg
0 stars 0 forks source link

Error running nxt_ros in Fuerte: AttributeError #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Copy nxt packages from Electric to Fuerte stacks
2. Tutorial 1 (Getting started with NXT-ROS) runs fine
3. Running Tutorial 2 (Creating a full robot in NXT-ROS) fails witht the error: 
  AttributeError: 'roslib.message' object has no attribute 'struct_I' 

What version of the product are you using? On what operating system?
ROS Fuerte
Ubuntu 12.04

I was able to fix this by modifying all the .py files in 
nxt/nxt_msgs/src/nxt_msgs/msg/
roslib.message.struct_I doesn't exist.

Replace:
_struct_I = roslib.message.struct_I
With:
_struct_I = struct.Struct('<I')

Now it works.
I don't know if this is Fuerte specific.
I've attached the modified files.

Original issue reported on code.google.com by ruan.deh...@gmail.com on 3 Jun 2014 at 1:49

Attachments: