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

Configuring my LeddarVu sensor through a ROS package from github

asked 2017-05-10 15:51:00 -0500

narayan gravatar image

updated 2017-05-11 15:01:34 -0500

gvdhoorn gravatar image

https://github.com/mcgill-robotics/ro... . In the github page, I have completed the steps stated in the READMe.md file up to the step for running, where I am stuck.

In this step, I am running the command they gave me

roslaunch leddar leddar.launch serial:=<serial> frame:=<frame_id> fov:=<fov> range:=<range>

inserting the correct parameter values, but I am getting this error:

(EDIT: I actually received this error from using catkin_make in my root folder just now)

#### Running command: "make -j8 -l8" in "/home/narayan/catkin_leddar_ws/build"
####
[ 50%] Built target leddar_gencfg
Linking CXX executable /home/narayan/catkin_leddar_ws/devel/lib/leddar/leddar
/usr/bin/ld: cannot find -lLeddarTech
/usr/bin/ld: cannot find -lLeddar
/usr/bin/ld: cannot find -lLeddarC
collect2: error: ld returned 1 exit status
make[2]: *** [/home/narayan/catkin_leddar_ws/devel/lib/leddar/leddar] Error 1
make[1]: *** [leddar/CMakeFiles/leddar.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

How can I fix this error? Any more help would be appreciated

Thank you!

edit retag flag offensive close merge delete

Comments

This is way too vague. What "trouble" have you been having exactly? Which package "from a github page" are you trying to use? How did you retrieve, build and install it? Which OS is this, exactly? Please update your question by editing it.

gvdhoorn gravatar image gvdhoorn  ( 2017-05-11 00:36:29 -0500 )edit

I have updated it. I can specify more if needed.

narayan gravatar image narayan  ( 2017-05-11 11:40:50 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-05-11 12:07:05 -0500

gvdhoorn gravatar image

updated 2017-05-11 15:05:14 -0500

Have you sourced the devel/setup.bash of the workspace where you compiled the package?


Edit:

Linking CXX executable /home/narayan/catkin_leddar_ws/devel/lib/leddar/leddar
/usr/bin/ld: cannot find -lLeddarTech
/usr/bin/ld: cannot find -lLeddar
/usr/bin/ld: cannot find -lLeddarC
collect2: error: ld returned 1 exit status

Have you set the environment variable that configures where the LeddarTech driver is located? Under Compilation in the readme:

You must compile this package before being able to run it. You can do so by running:

export LEDDAR_LIB_DIR=/path/to/driver
catkin_make

I think if you don't do this linking will not be successful.

In any case: if you keep encountering errors while trying to compile this package I recommend you open an issue on the issue tracker of the package.

This is no longer a problem with ROS per se.

edit flag offensive delete link more

Comments

yes, I have.

narayan gravatar image narayan  ( 2017-05-11 12:15:22 -0500 )edit

So what is the output of rospack find leddar?

gvdhoorn gravatar image gvdhoorn  ( 2017-05-11 13:32:01 -0500 )edit

It is giving me an error, "[rospack] Error: package 'leddar' not found"

narayan gravatar image narayan  ( 2017-05-11 13:47:11 -0500 )edit

Ok. So did you build your workspace after cloning the package sources from github? You write that you "have completed the steps stated in the READMe.md file". Does that include the catkin_make step? Was that successful?

rospack not finding your pkg is indicative of a problem here.

gvdhoorn gravatar image gvdhoorn  ( 2017-05-11 13:49:29 -0500 )edit

catkin_make is now successful, but the command "roslaunch leddar leddar.launch serial:..." now has a different error, which is "Linking CXX executable /home/narayan/catkin_leddar_ws/devel/lib/leddar/leddar /usr/bin/ld: cannot find -lLeddarTech"

narayan gravatar image narayan  ( 2017-05-11 14:37:29 -0500 )edit

Please edit your original question with this new information. Comments are not suited for this.

gvdhoorn gravatar image gvdhoorn  ( 2017-05-11 14:51:30 -0500 )edit

Sorry about that, I have attached the message to my original post

narayan gravatar image narayan  ( 2017-05-11 14:59:42 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2017-05-10 15:51:00 -0500

Seen: 455 times

Last updated: May 11 '17