apt-installed lms1xx driver fails: can't locate node [LMS1xx_node] in package [lms1xx].

asked 2020-04-24 07:40:20 -0500

smarn gravatar image

updated 2020-04-25 11:22:26 -0500

Hello guys,

I would like to know whether I am doing something wrong or this is a common issue. I am using the lms1xx driver which I installed in my pc along with the husky pkgs. When I try to launch the .launch file I get this msg:

ERROR: cannot launch node of type [lms1xx/LMS1xx_node]: can`t locate node [LMS1xx_node] in package [lms1xx]

I actually overcame this issue by cloning from github the driver in my catkin_ws and building it again in my work space. After a little investigation I think that the source of the problem is the static object file libLMS1xx.a that is created by the apt-installed lms1xx pkg in the /opt/ros/kinetic/lib folder which is somehow unable to link the LMS1xx_node exec. On the other hand, in ~/catkin_ws/devel/lib the object file is libLMS1xx.so (dynamic linkin) so it works just fine.

Why is this happening and could I re-build a package located in /opt/ros/kinetic/share in order to create the .so obj file?

Thank you!

edit retag flag offensive close merge delete

Comments

I'm sorry to have to do this for something so seemingly unimportant, but please don't post screenshots of terminal text in question on ROS Answers. It's all text, so there is no need. Just copy-paste the text from the terminal into your question text. Do make sure to format it properly by selecting the text and pressing ctrl+k (or clicking the Preformatted Text button (the one with 101010 on it)).

You don't need to post a new question, just edit your curent one. You can use the edit button/link for this.

After you replace the screenshot with the error message itself, we can re-open your question.

gvdhoorn gravatar image gvdhoorn  ( 2020-04-25 08:12:19 -0500 )edit

Sorry for the inconvenience, I changed it.

smarn gravatar image smarn  ( 2020-04-25 11:20:17 -0500 )edit