undefined symbol: _ZN10costmap_2d12Costmap2DROSC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERN2tf17TransformListenerE
When i am running
roslaunch jackal_navigation odom_navigation_demo.launch
the error shown is
/opt/ros/kinetic/lib/move_base/move_base: symbol lookup error: /opt/ros/kinetic/lib/libmove_base.so: undefined symbol: _ZN10costmap_2d12Costmap2DROSC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERN2tf17TransformListener[move_base-1] process has died [pid 8163, exit code 127, cmd /opt/ros/kinetic/lib/move_base/move_base odom:=odometry/filtered __name:=move_base __log:=/home/akshay/.ros/log/e7fa7f24-b91f-11ea-8466-f0038c8b4bed/move_base-1.log].
output of:
c++filt _ZN10costmap_2d12Costmap2DROSC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERN2tf17TransformListenerE
is output
costmap_2d::Costmap2DROS::Costmap2DROS(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, tf::TransformListener&)
However, as it is described in the ros question about-undefined-symbol-error.I am not able to understand what to edit in which cmakelists.txt. By the way, CMakeLists.txt of jackal_navigation is
cmake_minimum_required(VERSION 2.8.3)
project(jackal_navigation)
find_package(catkin REQUIRED COMPONENTS roslaunch)
catkin_package()
roslaunch_add_file_check(launch/include/amcl.launch)
roslaunch_add_file_check(launch/amcl_demo.launch)
roslaunch_add_file_check(launch/include/gmapping.launch)
roslaunch_add_file_check(launch/gmapping_demo.launch)
roslaunch_add_file_check(launch/include/move_base.launch)
roslaunch_add_file_check(launch/odom_navigation_demo.launch)
install(DIRECTORY launch maps params DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} )
please tell me how to edit the CMakeLists.txt or any other solution.
What distros are you using? How are your packages installed?