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

Connect a wiimote

asked 2013-02-24 04:02:33 -0600

miniME gravatar image

updated 2013-02-24 04:02:55 -0600

I am trying to get a wiimote connected to my computer. For this I am using the wiimote package (ros.org/wiki/wiimote).

Here is what I did:

  1. install package: sudo apt-get install ros-groovy-wiimote

  2. install dependencies: rosdep install wiimote

  3. make: rosmake wiimote

  4. run wiimote_node.py: The first problem is here. The wiimote_node.py script does not exist in the wiimote package. According to this tutorial (ros.org/wiki/wiimote/Tutorials/StartingWiimoteNode) you need to execute rosrun wiimote wiimote_node.py. This doesn't work. I found out that the script was installed in /opt/ros/groovy/lib/wiimote/. So I executed it there: python /opt/ros/groovy/lib/wiimote/wiimote_node.py

Executing the wiimote_node.py script results in following error:

python wiimote_node.py Traceback (most recent call last): File "wiimote_node.py", line 87, in <module> from wiimote.msg import IrSourceInfo ImportError: No module named wiimote.msg

Can anybody help me with this problem? I tried the whole day to figure out whats wrong there. But i cant get it to work.

edit retag flag offensive close merge delete

Comments

I think this is a bug in the catkin build / installation, I created a ticket here and I'll look into it. Thanks!

jbohren gravatar image jbohren  ( 2013-02-24 11:44:02 -0600 )edit
1

Fix has been committed and will appear in ros-groovy-wiimote 1.9.9

jbohren gravatar image jbohren  ( 2013-03-13 16:37:49 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-02-24 10:30:17 -0600

miniME gravatar image

Solved the problem by downloading/building/installing the source:

  1. Download source from github.com/ros-drivers/joystick_drivers

  2. unzip wiimote folder into /opt/ros/groovy/share/wiimote

  3. build and install:

    cd /opt/ros/groovy/share/wiimote
    mkdir build
    cd build
    cmake ../
    make
    make install

  4. start wiimote node: rosrun wiimote wiimote_node.py

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-24 04:02:33 -0600

Seen: 868 times

Last updated: Feb 24 '13