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

robot_localization Build Failure

asked 2017-11-17 02:43:24 -0500

Marvin gravatar image

System: Ubuntu 16.04 LTS; ROS Kinetic; catkin tools robot_localization package git cloned to ~/catkin_ws/src

catkin build fails. I do not understand the issue and would appreciate if someone could interpret the build output below and advise.

Thank you in advance.


karl@qqq:~/catkin_ws$ catkin build robot_localization 
Profile:                     default
Extending:          [cached] /opt/ros/kinetic
Workspace:                   /home/karl/catkin_ws
---------------------------------------------------------
Source Space:       [exists] /home/karl/catkin_ws/src
Log Space:          [exists] /home/karl/catkin_ws/logs
Build Space:        [exists] /home/karl/catkin_ws/build
Devel Space:        [exists] /home/karl/catkin_ws/devel
Install Space:      [unused] /home/karl/catkin_ws/install
DESTDIR:            [unused] None
---------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
---------------------------------------------------------
Additional CMake Args:       None
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
---------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
---------------------------------------------------------
Workspace configuration appears valid.
---------------------------------------------------------
[build] Found '11' packages in 0.0 seconds.                                                                                                                                                                
[build] Package table is up to date.                                                                                                                                                                       
Starting  >>> roscpp                                                                                                                                                                                       
Starting  >>> tf2                                                                                                                                                                                          
Starting  >>> tf2_ros                                                                                                                                                                                      
Finished  <<< roscpp                            [ 0.5 seconds ]                                                                                                                                            
Finished  <<< tf2_ros                           [ 0.3 seconds ]                                                                                                                                            
Finished  <<< tf2                               [ 0.3 seconds ]                                                                                                                                            
Starting  >>> robot_localization                                                                                                                                                                           
___________________________________________________________________________________________________________________________________________________________________________________________________________
Errors     << robot_localization:make /home/karl/catkin_ws/logs/robot_localization/build.make.001.log                                                                                                      
CMakeFiles/test_ros_robot_localization_listener_publisher.dir/test/test_ros_robot_localization_listener_publisher.cpp.o: In function `main':
test_ros_robot_localization_listener_publisher.cpp:(.text+0x72): undefined reference to `ros::init(int&, char**, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)'
test_ros_robot_localization_listener_publisher.cpp:(.text+0xce): undefined reference to `ros::NodeHandle::NodeHandle(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)'
test_ros_robot_localization_listener_publisher.cpp:(.text+0x1db): undefined reference to `tf2_ros::StaticTransformBroadcaster::StaticTransformBroadcaster()'
test_ros_robot_localization_listener_publisher.cpp:(.text+0x25a): undefined reference to `ros::ok()'
test_ros_robot_localization_listener_publisher.cpp:(.text+0x7ac): undefined reference to `tf2_ros::StaticTransformBroadcaster::sendTransform(geometry_msgs::TransformStamped_<std::allocator<void> > const&)'
test_ros_robot_localization_listener_publisher.cpp:(.text+0x865): undefined reference to `ros::Publisher::~Publisher()'
test_ros_robot_localization_listener_publisher.cpp:(.text+0x874): undefined reference to `ros::Publisher::~Publisher()'
test_ros_robot_localization_listener_publisher.cpp:(.text+0x883): undefined reference to `ros::NodeHandle::~NodeHandle()'
test_ros_robot_localization_listener_publisher.cpp:(.text+0x8f4): undefined reference to `ros::NodeHandle::~NodeHandle()'
test_ros_robot_localization_listener_publisher.cpp:(.text+0x925): undefined reference to `ros::NodeHandle::~NodeHandle()'
test_ros_robot_localization_listener_publisher.cpp:(.text+0x956): undefined reference to `ros::Publisher::~Publisher()'
test_ros_robot_localization_listener_publisher.cpp:(.text+0x995): undefined reference to `ros::Publisher::~Publisher()'
test_ros_robot_localization_listener_publisher.cpp:(.text+0xa96): undefined reference to `ros::Publisher::~Publisher()'
test_ros_robot_localization_listener_publisher.cpp:(.text+0xaaa): undefined reference to `ros::Publisher::~Publisher()'
test_ros_robot_localization_listener_publisher.cpp:(.text+0xabe): undefined reference to `ros::NodeHandle::~NodeHandle()'
CMakeFiles/test_ros_robot_localization_listener_publisher.dir/test/test_ros_robot_localization_listener_publisher.cpp.o: In function `tf2_ros::StaticTransformBroadcaster::~StaticTransformBroadcaster()':
test_ros_robot_localization_listener_publisher.cpp:(.text._ZN7tf2_ros26StaticTransformBroadcasterD2Ev[_ZN7tf2_ros26StaticTransformBroadcasterD5Ev]+0x2d): undefined reference to `ros::Publisher::~Publisher()'
test_ros_robot_localization_listener_publisher.cpp:(.text._ZN7tf2_ros26StaticTransformBroadcasterD2Ev[_ZN7tf2_ros26StaticTransformBroadcasterD5Ev]+0x39): undefined reference to `ros::NodeHandle::~NodeHandle()'
test_ros_robot_localization_listener_publisher.cpp:(.text._ZN7tf2_ros26StaticTransformBroadcasterD2Ev[_ZN7tf2_ros26StaticTransformBroadcasterD5Ev]+0x50): undefined reference to `ros::Publisher::~Publisher()'
test_ros_robot_localization_listener_publisher.cpp:(.text._ZN7tf2_ros26StaticTransformBroadcasterD2Ev[_ZN7tf2_ros26StaticTransformBroadcasterD5Ev]+0x61): undefined reference to `ros::NodeHandle::~NodeHandle()'
CMakeFiles/test_ros_robot_localization_listener_publisher ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-29 17:03:35 -0500

Marvin gravatar image

I never found out how to build the robot_localization package cloned from git using catkin tools. However, I discovered that the robot_localization package could be installed simply using: sudo apt-get install ros-<distro>-robot-localization

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-11-17 02:43:24 -0500

Seen: 730 times

Last updated: Nov 29 '17