ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

NXT Ultrasonic test fails

asked 2011-06-27 12:00:03 -0500

Francis gravatar image

updated 2014-01-28 17:09:56 -0500

ngrennan gravatar image

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

edit retag flag offensive close merge delete

Comments

were you able to get the tests on this page (http://www.ros.org/wiki/nxt/Installation) to work? The tests on that page make sure that your USB is setup correctly.
mmwise gravatar image mmwise  ( 2011-06-27 12:50:56 -0500 )edit
Is the NXT brick running the latest firmware (v1.28 or above)? If not, you need to use the proprietary Lego software to update the brick.
Martin Günther gravatar image Martin Günther  ( 2011-06-28 00:34:14 -0500 )edit
Thanks it actually was the firmware it works fine now! Thanks a lot!
Francis gravatar image Francis  ( 2011-06-28 10:04:20 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2011-06-29 20:38:13 -0500

mmwise gravatar image

Solution copied from comments: Is the NXT brick running the latest firmware (v1.28 or above)? If not, you need to use the proprietary Lego software to update the brick

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-06-27 12:00:03 -0500

Seen: 444 times

Last updated: Jun 29 '11