vooon / opgateway

OpenPilot to ROS communication node with UDP Relay for GCS
6 stars 6 forks source link

Failing compiling package #1

Closed TSC21 closed 9 years ago

TSC21 commented 9 years ago

Hi there @vooon,

As we talked earlier, I'm trying to get the package to work so to start developing something more. But I'm not being able to compile the code with catkin_make as I get:

-- +++ processing catkin package: 'opgateway'
-- ==> add_subdirectory(opgateway)
-- Using these message generators: gencpp;genlisp;genpy
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   system
--   thread
--   timer
--   date_time
-- opgateway: 1 messages, 0 services
CMake Error at opgateway/genuavobj.cmake:13 (message):
  You must specify OPENPILOT_DIR
Call Stack (most recent call first):
  opgateway/CMakeLists.txt:59 (include)

-- Configuring incomplete, errors occurred!
See also "/home/nuno/AIMAV_Project/build/CMakeFiles/CMakeOutput.log".
See also "/home/nuno/AIMAV_Project/build/CMakeFiles/CMakeError.log".

What am I missing here? Do I have to download the OpenPilot repo and get it to be called in genuavobj.cmake?

TSC21 commented 9 years ago

Solved by adding the uavobjgenerator of rosgw to the FW (in my case to Taulabs, but will also work to OpenPilot). Then, change genuavobj.cmake on the pkg, setting the directory of the FW you are using.

Note: to add the uavobjgenerator, get the files from https://github.com/vooon/OpenPilot/tree/vooon/uavobjgen-ros.