Ask Your Question
0

wiimote WallTime problem

asked 2011-03-29 22:25:04 -0600

chcorbato gravatar image

updated 2011-03-30 21:35:37 -0600

Hello,

I'm not capable of running the wiimote_node.py by using a very simple launch file:

<launch>
 <!-- joy node -->
   <node respawn="true" pkg="wiimote"  type="wiimote_node.py" name="wii" output="screen"/>
</launch>

I get the following error:

process[turtle_wii-1]: started with pid [8703]
Press buttons 1 and 2 together to pair (within 6 seconds).
    (If no blinking lights, press power button for ~3 seconds.)
No Bluetooth interface found
[FATAL] [WallTime: 1301480233.413341] No Wiimote found to pair with.
Traceback (most recent call last):
  File "/opt/ros/diamondback/stacks/joystick_drivers/wiimote/nodes/wiimote_node.py", line 1201, in <module>
    rospy.rospy.loginfo("Exiting Wiimote node.")
AttributeError: 'module' object has no attribute 'rospy'
[turtle_wii-1] process has died [pid 8703, exit code 1].

However it works when doing:

$ rosrun wiimote wiimote_node.py

It looks like an issue with the rospy WallTime

edit retag flag offensive close merge delete

Comments

Could you post the smallest launch file that produces this error?
Eric Perko gravatar image Eric Perko  ( 2011-03-30 07:52:29 -0600 )edit
I forgot it, thank you, I have updated the question.
chcorbato gravatar image chcorbato  ( 2011-03-30 21:36:07 -0600 )edit
it looks like it's a bug let me look at the code.. .it looks like it's calling the method rospy.rospy.loginfo which isn't valid. I'll check it out and most likely put out a minor release update.
mmwise gravatar image mmwise  ( 2011-03-31 06:54:19 -0600 )edit
okay the I fixed the AttributeError but that is unrelated to the pairing.. your launch file should work I just tested it with a wiimote and everything seems to be working. I'll push out a minor release update today for joystick drivers.
mmwise gravatar image mmwise  ( 2011-03-31 07:06:18 -0600 )edit
here is the ticket I opened for myself: https://code.ros.org/trac/ros-pkg/ticket/4892
mmwise gravatar image mmwise  ( 2011-03-31 07:14:53 -0600 )edit
Thank you very much for solving this so fast!
chcorbato gravatar image chcorbato  ( 2011-04-01 00:41:03 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-04-01 00:41:25 -0600

chcorbato gravatar image

updated 2011-04-01 13:28:20 -0600

tfoote gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-03-29 22:25:04 -0600

Seen: 314 times

Last updated: Apr 01 '11