Robotics StackExchange | Archived questions

problem in installaion ROS DJI

We are trying to install the djisdk library to Ubuntu 18 (with ROS melodic) http://wiki.ros.org/djisdk/Tutorials/Getting%20Started when we try to use the command catkin_make we get the error:

CMake Error at /home/jetson/catkinws/devel/share/djisdk/cmake/djisdkConfig.cmake:197 (findpackage): Could not find a package configuration file provided by "nmea_msgs" with any of the following names:

nmeamsgsConfig.cmake nmeamsgs-config.cmake

Add the installation prefix of "nmeamsgs" to CMAKEPREFIXPATH or set "nmeamsgsDIR" to a directory containing one of the above files. If "nmeamsgs" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:76 (findpackage) Onboard-SDK-ROS/djisdkdemo/CMakeLists.txt:10 (findpackage)

we tried to use the command "sudo apt-get install ros-kinetic-nmea-msgs" but the error still exists (according to what is written all the relevant files exist). Is it possible to download this on ros melodic? Ubuntu 18?

Asked by ofir on 2019-12-17 07:39:56 UTC

Comments

Answers

we tried to use the command "sudo apt-get install ros-kinetic-nmea-msgs"

If you use ROS melodic you should not install ROS Kinetic packages, but ros-melodic-nmea-msgs instead. It is recommended to use rosdep to install dependencies.


I faced a similar issue. To get things to compile properly I needed to make these changes

The steps I followed to build it (copied from PR description):

docker run -it --rm ros:melodic-ros-core
apt -qq update && apt upgrade -y
cd && git clone https://github.com/dji-sdk/Onboard-SDK &&  cd Onboard-SDK && mkdir build && cd build
cmake .. && make djiosdk-core && make install
cd && mkdir -p catkin_ws/src &&  cd catkin_ws/src
git clone https://github.com/dji-sdk/Onboard-SDK-ROS.git -b master
cd ..
rosdep update
rosdep install -y --rosdistro melodic --from-paths src --ignore-src
catkin_make_isolated

Asked by marguedas on 2020-01-22 06:16:16 UTC

Comments