Skip to content

Eigen/Dense inclusion error when using rtt_rosparam #164

@dustingooding

Description

@dustingooding

ROS1 Melodic, Ubuntu 18.04, Orocos toolchain-2.9 from source. I do have Eigen3 installed.

I have a component that makes use of rtt_rosparam. I use #include <rtt_rosparam/rosparam.h> and then use it as normal.

Lately (maybe starting last week?), I've been getting a transient compile error. It doesn't happen every time, but occasionally it does. I haven't been able to pinpoint when/why. Here's the error:

Starting  >>> my_pkg
__________________________________________________________________________________________________________________
Errors     << my_pkg:make /root/my_ws/logs/my_pkg/build.make.026.log
In file included from /root/my_ws/src/my_pkg/include/my_pkg/my_component.hpp:16:0,
                 from /root/my_ws/src/my_pkg/src/my_component.cpp:8:
/opt/orocos/melodic/include/orocos/rtt_rosparam/rosparam.h:9:12: fatal error: Eigen/Dense: No such file or director
y
   #include <Eigen/Dense>
            ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/my_component.dir/src/my_component.cpp.o] Error 1
make[1]: *** [CMakeFiles/my_component.dir/all] Error 2
make: *** [all] Error 2

I have Eigen3 installed, and Dense is definitely there:

# ls -al /usr/include/eigen3/Eigen/Dense
-rw-r--r-- 1 root root 122 Jun 15  2017 /usr/include/eigen3/Eigen/Dense

I looked into recent changes for rtt_ros_integration and specifically rtt_rosparam, but I'm not seeing any obvious smoking guns. Do you have any idea why this might be happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions