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

Receive an undefined reference error when make teleop_nao_ni

asked 2012-06-27 05:40:05 -0500

Curious Joe gravatar image

updated 2012-06-27 22:37:33 -0500

AHornung gravatar image

When trying to rosmake the nao_openni package I receive the following error:

Linking CXX executable ../bin/teleop_nao_ni

/opt/ros/electric/stacks/robot_model/urdf/lib/liburdf.so: error: undefined reference to 'operator<<(std::basic_ostream<char, std::char_traits<char=""> >&, TiXmlNode const&)'

collect2: ld returned 1 exit status

This error only occurs on making the teleop_nao_ni executable. Anyone have any suggestions on what I can do to fix the liburdf.so error?

Note: All the dependencies for the package compile fine, the paths are correct (ros_package_path, pythonpath, pythonhome, ros_workspace) and the object file compiles so there shouldn't be an error in the cpp file.

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
2

answered 2012-07-24 21:59:18 -0500

updated 2012-07-24 22:04:12 -0500

Hi. I had the same problem with the 'planning_models' package in 'armnavigation' stack. You need to edit manifest.xml of the urdf package and append '-ltinyxml' to the 'cpp cflags' line. The resulting line looks like:

<cpp cflags="-I${prefix}/include" lflags="-Wl,-rpath,${prefix}/lib -L${prefix}/lib -lurdf -ltinyxml"/>
edit flag offensive delete link more

Comments

1

I would recommend creating ticket for this fix in the bug tracker for URDF.

AHornung gravatar image AHornung  ( 2012-07-24 22:50:04 -0500 )edit
0

answered 2012-07-19 15:49:11 -0500

karen gravatar image

Hi, I am running into the same error when trying rosmake nao_remote. Did you have to figure out the problem with the liburdf.so file?

edit flag offensive delete link more
-1

answered 2012-08-16 15:20:37 -0500

ryann2k1 gravatar image

Hi,

I had the same problems previously but solved by downloading the package: sudo apt-get install ros-electric-joystick-drivers ( adjust to your own ros type)

good luck

ryan

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-06-27 05:40:05 -0500

Seen: 544 times

Last updated: Aug 16 '12