Robotics StackExchange | Archived questions

Installation MAVRos...geographic_msgs error

Hi Everyone, this is my first question and I am not an expert. I have recently installed Ros-kinetic and trying to install MAVRos. These are the commands I used (ubutnu 16.04):

mkdir -p /mavlink_ws/src
cd /mavlink_ws
catkin init
wstool init src
sudo apt-get install python-catkin-tools python-rosinstall-generator -y
wstool init /mavlink_ws/src
rosinstall_generator –rosdistro kinetic mavlink | tee /tmp/mavros.rosinstall
rosinstall_generator –upstream mavros | tee -a /tmp/mavros.rosinstall
wstool merge -t src /tmp/mavros.rosinstall
wstool update -t src -j2
rosdep install –from-paths src –ignore-src -y
./src/mavros/mavros/scripts/install_geographiclib_datasets.sh
catkin build

Catkin build geenrates this error:

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by "geographic_msgs"
  with any of the following names:

    geographic_msgsConfig.cmake
    geographic_msgs-config.cmake

  Add the installation prefix of "geographic_msgs" to CMAKE_PREFIX_PATH or
  set "geographic_msgs_DIR" to a directory containing one of the above files.
  If "geographic_msgs" provides a separate development package or SDK, be
  sure it has been installed.

P.S. command sudo apt-get install ros-kinetic-geographic returns:

 E: Unable to locate package ros-kinetic-geographic-msgs

Asked by Mrmara on 2019-04-03 18:28:39 UTC

Comments

What does

not working

mean? Can you please update your question with a copy and paste of any errors that you may be getting?

Asked by jayess on 2019-04-04 01:57:28 UTC

Thanks for the update, but could you please include the error that you're getting from

sudo apt-get install ros-kinetic-geographic 

?

Asked by jayess on 2019-04-04 13:35:08 UTC

Answers

Run the following commands for each package that throws up an error and replace the with whatever package throws up an error.

rosinstall_generator –rosdistro kinetic <package name> | tee -a  /tmp/mavros.rosinstall
wstool merge -t src /tmp/mavros.rosinstall
wstool update -t src -j2
catkin build

In your case it would be

rosinstall_generator –rosdistro kinetic geographic_msgs | tee -a  /tmp/mavros.rosinstall

Asked by prashantpd on 2019-10-31 23:19:16 UTC

Comments