ros-planning / navigation

ROS Navigation stack. Code for finding where the robot is and how it can get somewhere else.
2.34k stars 1.8k forks source link

ros-melodic-costmap-2d dependancy error #1188

Closed lianghongzhuo closed 2 years ago

lianghongzhuo commented 2 years ago

I got the follwing error when doing sudo apt upgrade system: ubuntu18.04 ros melodic

The following packages have unmet dependencies:
 ros-melodic-costmap-2d : Depends: ros-Melodic-message-filters but it is not installable

I guess there is a typo in the dependancy? Where ros-Melodic-message-filters has a capital "M"

mikeferguson commented 2 years ago

I don't see how that could have happened - A) we haven't had a release in a while, and B) the "ros-melodic-" part gets added by bloom (so it is automated when we do the release)

lianghongzhuo commented 2 years ago

I also confused how this could happen. So I also asked in rosdistro package.

mikeferguson commented 2 years ago

So.. I just downloaded http://packages.ros.org/ros/ubuntu/pool/main/r/ros-melodic-costmap-2d/ros-melodic-costmap-2d_1.16.7-1bionic.20210921.222823_amd64.deb and extracted the control file:

Package: ros-melodic-costmap-2d
Version: 1.16.7-1bionic.20210921.222823
Architecture: amd64
Maintainer: David V. Lu!! <davidvlu@gmail.com>
Installed-Size: 2261
Depends: libboost-filesystem1.65.1, libboost-system1.65.1, libboost-thread1.65.1, libc6 (>= 2.14), libconsole-bridge0.4, libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2), libtinyxml2-6 (>= 5.0.0), ros-melodic-dynamic-reconfigure, ros-melodic-geometry-msgs, ros-melodic-laser-geometry, ros-melodic-map-msgs, ros-melodic-message-filters, ros-melodic-message-runtime, ros-melodic-nav-msgs, ros-melodic-pluginlib, ros-melodic-rosconsole, ros-melodic-roscpp, ros-melodic-rostest, ros-melodic-sensor-msgs, ros-melodic-std-msgs, ros-melodic-tf2, ros-melodic-tf2-ros, ros-melodic-visualization-msgs, ros-melodic-voxel-grid
Section: misc
Priority: optional
Homepage: http://wiki.ros.org/costmap_2d
Description: This package provides an implementation of a 2D costmap that takes in sensor data from the world, builds a 2D or 3D occupancy grid of the data (depending on whether a voxel based implementation is used), and inflates costs in a 2D costmap based on the occupancy grid and a user specified inflation radius.
 This package also provides support for map_server based initialization of a costmap, rolling window based costmaps, and parameter based subscription to and configuration of sensor topics.

I don't see any problem here

lianghongzhuo commented 2 years ago
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  ros-melodic-costmap-2d ros-melodic-dynamic-reconfigure
The following packages will be upgraded:
  ros-melodic-costmap-2d ros-melodic-dynamic-reconfigure
2 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Just run upgrade again, the error dispears. Seems someone fixed it silently? It was broken this morning, but fixed this afternoon...

tfoote commented 2 years ago

It sounds like you might have gotten an inconsistent state in your apt-update. As it's working and there's nothing to track to follow up I'm going to close this.