uzh-rpg / rpg_dvs_ros

ROS packages for DVS
MIT License
300 stars 155 forks source link

Error with dvxplorer_ros_driver #135

Open jprodriguezg opened 2 years ago

jprodriguezg commented 2 years ago

Hello! I am having an issue with installing the dvxplorer_ros_driver package. I followed the steps on the repo but my system returns the following error:

CMakeFiles/dvxplorer_ros_driver.dir/src/driver.cpp.o: In function `dvxplorer_ros_driver::DvxplorerRosDriver::caerConnect()':
driver.cpp:(.text+0x1741): undefined reference to `caerDVXplorerInfoGet'
collect2: error: ld returned 1 exit status

libcaer_dev is installed on my computer. I checked the /usr/include/libcaer/devices/dvxplorer.h and there is the definition structure caerDVXplorerInfoGet in line 688. Any guess about how to solve this issue? I am using Ubuntu 18.04

Thanks!

Ps: I have installed both dvs_ros_driver and davis_ros_driver successfully without any error.

jprodriguezg commented 2 years ago

The issue was solved by modifying the CMakeList.txt file (issue #120) adding the following line:

set(libcaer_DIR "/usr/lib/x86_64-linux-gnu/cmake/libcaer/")

just before

find_package(libcaer REQUIRED)

Ps: Check first that the Config files are in that location.

jprodriguezg commented 2 years ago

Hello again,

Although I was able to compile the package, I am having issues running the dvxplorer_ros_driver node. I am having the following error:

/USER/catkin_ws/devel/lib/dvxplorer_ros_driver/dvxplorer_ros_driver: symbol lookup error: /USER/catkin_ws/devel/lib/dvxplorer_ros_driver/dvxplorer_ros_driver: undefined symbol: caerDVXplorerInfoGet
[dvxplorer/dvxplorer_ros_driver-1] process has died [pid 3025, exit code 127, cmd /USER/catkin_ws/devel/lib/dvxplorer_ros_driver/dvxplorer_ros_driver __name:=dvxplorer_ros_driver __log:=/USER/.ros/log/759cd902-94b7-11ec-ab7e-54bf6401abc3/dvxplorer-dvxplorer_ros_driver-1.log].
log file: /USER/.ros/log/759cd902-94b7-11ec-ab7e-54bf6401abc3/dvxplorer-dvxplorer_ros_driver-1*.log
all processes on machine have died, roslaunch will exit

Seems like the problem is always related to the "caerDVXplorerInfoGet". Any suggestions to solve this issue?

I am using Ubuntu 18.04, ROS melodic, and libcaer 3.3.12-1 bionic

Thanks!