ahundt / grl

Robotics tools in C++11. Implements soft real time arm drivers for Kuka LBR iiwa plus V-REP, ROS, Constrained Optimization based planning, Hand Eye Calibration and Inverse Kinematics integration.
https://ahundt.github.io/grl/
BSD 2-Clause "Simplified" License
154 stars 73 forks source link

grl_kuka_ros_driver.cpp - Compile and Execution Issue #179

Open vec123 opened 4 years ago

vec123 commented 4 years ago

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?