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

Unable to start robot state publisher due to missing library

asked 2016-10-09 18:07:12 -0600

Cerin gravatar image

When I try to launch robot_state_publisher with the launch file:

<launch>
    <arg name="model" default="$(find mybot_description)/urdf/mybot.urdf.xacro"/>
    <param name="robot_description" command="$(find xacro)/xacro --inorder $(arg model)" />
    <node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher" />
</launch>

it dies with the error:

/opt/ros/kinetic/lib/robot_state_publisher/state_publisher: error while loading shared libraries: librobot_state_publisher_solver.so: cannot open shared object file: No such file or directory

Obviously, I have the ros-kinetc-robot-state-publisher package installed. Why is it throwing this error? Searching apt-cache finds nothing providing that .so file.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-01-06 20:27:00 -0600

Cerin gravatar image

I confirmed the .so file is located in /opt/ros/kinetic/lib/librobot_state_publisher_solver.so. The problem was I was running roslaunch from the wrong directory, and I hadn't sourced my shell with the appropriate ROS environment variables.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-10-09 18:07:12 -0600

Seen: 655 times

Last updated: Jan 06 '18