NXT Ultrasonic test fails
I'm trying to test my NXT Ultrasonic sensor with ROS, and everything is connecting fine, but I always get the following message:
setting /run_id to 4303e172-a10f-11e0-a60c-78e40087f376 process[rosout-1]: started with pid [3561] started core service [/rosout] process[nxt_ros-2]: started with pid [3564] [INFO] [WallTime: 1309214775.145184] Creating ultrasonic with name ultrasonic_sensor on PORT_2 Traceback (most recent call last): File "/opt/ros/diamondback/stacks/nxt/nxt_ros/scripts/nxt_ros.py", line 406, in <module> main() File "/opt/ros/diamondback/stacks/nxt/nxt_ros/scripts/nxt_ros.py", line 376, in main components.append(UltraSonicSensor(c, b)) File "/opt/ros/diamondback/stacks/nxt/nxt_ros/scripts/nxt_ros.py", line 180, in __init__ self.ultrasonic = nxt.sensor.UltrasonicSensor(comm, eval(params['port'])) File "/opt/ros/diamondback/stacks/nxt/nxt_python/src/nxt/sensor.py", line 314, in __init__ self.set_input_mode() File "/opt/ros/diamondback/stacks/nxt/nxt_python/src/nxt/sensor.py", line 71, in set_input_mode self.mode) File "/opt/ros/diamondback/stacks/nxt/nxt_python/src/nxt/brick.py", line 23, in poll igram = Telegram(opcode=opcode, pkt=self.sock.recv()) File "/opt/ros/diamondback/stacks/nxt/nxt_python/src/nxt/usbsock.py", line 69, in recv data = self.handle.bulkRead(self.blk_in.address, 64) usb.USBError: No error [nxt_ros-2] process has died [pid 3564, exit code 1]. respawning...
(this loops) It says there are no errors, but I still get no reading. (I've been studying ROS for 3 hours by the way. Please don't be too harsh...)
Comments
![Francis Francis gravatar image](/m/default/media/images/nophoto.png?v=28)