ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Installation MAVRos...geographic_msgs error

asked 2019-04-03 18:30:27 -0600

Mrmara gravatar image

updated 2019-04-05 14:43:33 -0600

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
edit retag flag offensive close merge delete

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?

jayess gravatar image jayess  ( 2019-04-04 01:57:28 -0600 )edit

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

sudo apt-get install ros-kinetic-geographic

?

jayess gravatar image jayess  ( 2019-04-04 13:35:08 -0600 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2019-10-31 23:19:16 -0600

prashantpd gravatar image

Run the following commands for each package that throws up an error and replace the <package name=""> 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
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-04-03 18:28:39 -0600

Seen: 2,790 times

Last updated: Oct 31 '19