Giter Club home page Giter Club logo

Comments (13)

nicolaroberto-tesla avatar nicolaroberto-tesla commented on July 21, 2024 1

Thanks supitalp,

I've tried it, no out-of-date stuff found.

It was less time consuming to bring up a *buntu vm and now it happily works.

Best,

from rpg_dvs_ros.

supitalp avatar supitalp commented on July 21, 2024

Hi Snehesh,
Can you checkout the master branch of the davis_ros_driver (and make sure it is up to date), and try the following?

cd path_to_your_catkin_workspace
rm -rf build/libcaer_catkin/ build/davis_ros_driver/ devel/lib/libcaer.so devel/lib/davis_ros_driver/
catkin build --force-cmake libcaer_catkin davis_ros_driver

Please let us know if that works, or what error message you get if that does not.

Best,
Henri

from rpg_dvs_ros.

nicolaroberto-tesla avatar nicolaroberto-tesla commented on July 21, 2024

Hi there,

i've checked it out myself.

Still does not build with the indicated workaround. The output error is:

make[2]: *** No rule to make target '/home/vagrant/catkin_ws/devel/lib/libcaer.so', needed by 
'/home/vagrant/catkin_ws/devel/lib/liblibcaer_catkin.so'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/libcaer_catkin.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Cordialement,

Nicola

from rpg_dvs_ros.

supitalp avatar supitalp commented on July 21, 2024

Hi,
The error looks like this one: #36
Have you tried using the fix given by cJarvers there? Can you tell us a bit more about your system (which linux distribution / version, which version of ROS)?

Also, if that does not work, have you tried checking out commit 4c1e1ee (as sneheshs), clean your build and devel folders as indicated above, and rebuild it? Does that solve the issue?

Thanks,
Henri

from rpg_dvs_ros.

sneheshs avatar sneheshs commented on July 21, 2024

Hi Henri and Nicola,

I had to revert back to 4c1e1ee commit for this to work. However, please make sure you update to the latest caer library as well. I needed to do that for this to work.

Best,
Snehesh

from rpg_dvs_ros.

nicolaroberto-tesla avatar nicolaroberto-tesla commented on July 21, 2024

Hi There,

I am on an up-to-date ArchLinux, ros LUNAR installed through package manager and works with other stuff.

I have managed to get past the libcaer compilation by applying the fix of cJarvers you mentioned (modifying libcaer's CMakeLists.txt and libcaer-extras.cmake.in, no symlinks).

The fix both works with HEAD and 4c1e1ee (the libcaer part).

However, afterwards, catkin build gets stuck with davis-ros-driver as it does not find the rospkg python module.

I know there are issues with ArchLinux being built around python3 and conflicting with ROS but the workaround suggested in ArchWiki (forcing python2, that works with all the other packages i tried) seems to be ignored by rpg_dvs_ros.

I'm looking into it.

Cordialement,

Nicola R.

from rpg_dvs_ros.

sneheshs avatar sneheshs commented on July 21, 2024

I am using Ubuntu 16.04, sorry don't know much about ArchLinux. I am using ROS Kinetic.

Best,
Snehesh

from rpg_dvs_ros.

nicolaroberto-tesla avatar nicolaroberto-tesla commented on July 21, 2024

Hi There,

I've fixed the python problem for ArchLinux.

To get rid of missing package error, I just forced dvs_ros_driver to use python2 by modifying rpg_dvs_ros/dvs_ros_driver/cfg/DVS_ROS_Driver.cfg.

In the end it compiled. I did not test it because the DAVIS camera is at the lab.

When I tried to compile instead dvs_rendered, problems started to rain down.

To make it compile and, most important, run, I had to:

symlink all the references to:

  • libopencv_core.so.3.3.0
  • libopencv_imgproc.so.3.3.0
  • libopencv_imgcodecs.so.3.3.0

to their 3.3.1 version.

Also, I had to symlink

  • libPocoFoundation.so.48

to its .49 version.

After unsuccesfully searching how to modify these "requests for libraries" on the rpg_dvs_ros side, I gave up, grabbed a sandwich and symlinked.

I tried to test (running rather than just compiling) it but, as it is on a remote VM, it gave me a weird error. Something in the lines of "process has died, exit code -6" on image-view-left-2. It is a console VM with tmux and x forwarding, so I will wait to get to the lab before pulling my hair further.

On another system, building the dvs_renderer produced the same kind of problems as before (wrong library version), but with libboost this time.

After this I really gave up.

Best,

from rpg_dvs_ros.

nicolaroberto-tesla avatar nicolaroberto-tesla commented on July 21, 2024

Tried again, camera is "busy" so no driver tests.
No luck with the rendererer though.
Still gives back a "attempted to unlock mutex that was not locked" and dies (exit code -6).
At this point IDK if the problem is the code or in the wrong libraries.
Best,

from rpg_dvs_ros.

sneheshs avatar sneheshs commented on July 21, 2024

Just for the sake of validating your steps vs Arch Linux related issues, I'd recommend trying it out in an Ubuntu setup.

from rpg_dvs_ros.

nicolaroberto-tesla avatar nicolaroberto-tesla commented on July 21, 2024

In *buntu it works out of the box.

EDIT: this does not mean that the issue is closed. As the problem lies in the fact that specific library versions are used instead of version-agnostic stuff (or at least I do believe so) it means that the package is *buntu only. Please correct me if I am wrong.

Or better, please tell me how can I specify rpg-dvs-ros to CONSISTENTLY compile using a specific version of opencv or a specific version of python (i.e. redefinition of python environment in rpg_dvs_ros/dvs_ros_driver/cfg/DVS_ROS_Driver.cfg.).

Best,

from rpg_dvs_ros.

supitalp avatar supitalp commented on July 21, 2024

Hi nicolaroberto-tesla,
Thanks for the info. As far as I know, the driver should not depend on specific library versions, so I am a bit confused here. I have a student who successfully compiled the driver + dvs_renderer on ArchLinux without major trouble. Maybe that link contains relevant information? https://wiki.archlinux.org/index.php/Ros#Rebuild_when_shared_libraries_are_updated

from rpg_dvs_ros.

llongi avatar llongi commented on July 21, 2024

Official libcaer build is now used, see README for further details.

from rpg_dvs_ros.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.