librotate_recovery.so: undefined symbol
Im working with ROS noetic. I want to get the cmd_vel commands necessary to move my robot around in the simulator. For that reason I've created my own "local planner" and then input it as a plugin to "base local planner". When I roslaunch, I get the following error:
/opt/ros/noetic/lib/move_base/move_base: symbol lookup error: /opt/ros/noetic/lib//librotate_recovery.so: undefined symbol: _ZN18base_local_planner12CostmapModelC1ERKN10costmap_2d9Costmap2DE [move_base-3] process has died [pid 8437, exit code 127, cmd /opt/ros/noetic/lib/move_base/move_base __name:=move_base __log:=/home/rachu/.ros/log/94c160a0-2fe1-11eb-b6a1-4734a68ce0f6/move_base-3.log]. log file: /home/rachu/.ros/log/94c160a0-2fe1-11eb-b6a1-4734a68ce0f6/move_base-3*.log
This is my move_base.launch file:
<launch> <master auto="start"/> <node pkg="tf" type="static_transform_publisher" name="base_link" args="0 0 0 0 0 0 /odom /base_link 2" output="screen"/> <node pkg="tf" type="static_transform_publisher" name="initial_loc" args="25 25 0 0 0 0 /map /odom 2" output="screen"/>
<node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
<!-- replacing default local planner with the project local planner -->
<param name="base_local_planner" value="bezier_local_planner/LocalPlanner" />
<rosparam file="/home/rachu/catkin_ws/src/tfg_final/costmap_common_params.yaml" command="load" ns="global_costmap" />
<rosparam file="/home/rachu/catkin_ws/src/tfg_final/costmap_common_params.yaml" command="load" ns="local_costmap" />
<rosparam file="/home/rachu/catkin_ws/src/tfg_final/global_costmap_params.yaml" command="load" />
<rosparam file="/home/rachu/catkin_ws/src/tfg_final/local_costmap_params.yaml" command="load" />
</node>
</launch>
Just in case the problem is that it is not finding the original "base_local_planner_lib", I've linked it in CMakeLists.txt:
target_link_libraries( bezier_local_planner ${catkin_LIBRARIES} /opt/ros/noetic/lib/libbase_local_planner.so /opt/ros/noetic/lib/librotate_recovery.so )
I am publishing a map with rosrun map_server map_server map1.yaml It looks like "move_base" is not finding the library in charge of the CostmapModel.