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

Problem in

asked 2012-02-21 05:31:37 -0500

anonymous user



i have a problem when i start the wiimote_node with rosrun wiimote I get the following error message:

Traceback (most recent call last): File "", line 100, in <module> import wiimote.WIIMote File "/opt/ros/electric/stacks/joystick_drivers/wiimote/src/wiimote/", line 48, in <module> import cwiid ImportError: /opt/ros/electric/stacks/joystick_drivers/cwiid/cwiid/lib/ undefined symbol: clock_gettime

has anyone encountered the problem yet? I'm running out of ideas.

My os is ubuntu 11.10 32-bit

edit retag flag offensive close merge delete


can you include what version of joystick drivers you have installed (look at the CMakeLists.txt in joystick_drivers).. I just installed the latest from the package manager (1.6.4) and ran it and it worked.

mmwise gravatar image mmwise  ( 2012-03-16 13:25:04 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2012-03-16 01:38:37 -0500

claeslund gravatar image

Yes I have had the same problem.

It is the libcwiid that comes with ROS Electric that is the problem. You can solve it be doing the following:

install libcwiid1 and libcwiid-dev with synaptic or apt.

go to


remove or rename

Create the following symbolic links with “sudo ln -s” -> /usr/lib/ -> /usr/lib/ -> /usr/lib/

example: sudo ln -s /usr/lib/

This will solve your problem.

edit flag offensive delete link more


Had same issue while using wiimote in ROS Electric. The provided solution solved the problem. Also the symbolic link command should be "sudo ln -s /usr/lib/"

piyushk gravatar image piyushk  ( 2012-05-21 10:04:27 -0500 )edit

Question Tools


Asked: 2012-02-21 05:31:37 -0500

Seen: 466 times

Last updated: Mar 16 '12