Ask Your Question

Unable to start robot state publisher due to missing library

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

Cerin gravatar image

When I try to launch robot_state_publisher with the launch file:

    <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" />

it dies with the error:

/opt/ros/kinetic/lib/robot_state_publisher/state_publisher: error while loading shared libraries: 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

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

Cerin gravatar image

I confirmed the .so file is located in /opt/ros/kinetic/lib/ 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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



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

Seen: 218 times

Last updated: Jan 06 '18