Skip to content

grl_kuka_ros_driver.cpp - Compile and Execution Issue #179

@vec123

Description

@vec123

Hi, I installed grl according to the Ubuntu 16.04 Automated Installation mentioned in https://github.com/ahundt/grl/blob/master/INSTALL.md and got to the point where I have an GRL-driver application on my smartpad.

When I start it I get: "FRI Joint Overlay Complete!".
Now I would like to start the C++ Node "grl_kuka_ros_driver.cpp" to enable sending commands via rostopics (to an kuka Iiwa 7).

However I can not find any executable in the build directory and get the following error if I try to compile with "g++ grl_kuka_ros_driver.cpp -std=c++11" :

--> fatal error: grl/ros/KukaLBRiiwaROSPlugin.hpp No such file or directory.

This is related to the import in the first line of the code. However, the file exists in the include folder of my grl location. If I insert the complete import path manually, then I get the same import related error, but one layer deeper in the KukaLBRiiwaROSPlugin.hpp file, where it states:

--> fatal error: ros/ros.h No such file or directory.

The file exists in opt/ros/kinetic/include/ but apparently the compiler does not look there.

My Ubuntu Version is 16.04. The grl_kuka.sh contains the following lines:

if [ "$DISTRIB_RELEASE" = "16.04" ] || [ "$DISTRIB_RELEASE" = "14.04" ]; then
./ros.sh
EXTRA_TOOLS="-DWITH_ROS=ON"
fi

making me assume that the flag DWITH_ROS=ON is set.

I do not know how to solve this issue. Is there something wrong with my compile options? If so, how do I change them? Or if not, is an executable for the .cpp file created during the execution of ./grl_kuka.sh and how can i locate (or create) it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions