Skip to content

[Bug]: Support for two consecutive docking waypoints on the same lane (graph rejected due to “duplicate dock” + adapter crash) #325

@alex-roba

Description

@alex-roba

Before proceeding, is there an existing issue or discussion for this?

OS and version

Ubuntu 24.04

Open-RMF installation type

Source build

Other Open-RMF installation methods

No response

Open-RMF version or commit hash

main

ROS distribution

Jazzy

ROS installation type

Binaries

Other ROS installation methods

No response

Package or library, if applicable

No response

Description of the bug

We have a physical lane where two docking targets are placed back-to-back along the same straight path (see diagram).

When the goal is dock2, and the robot is at wp2, we want RMF to command a dock at dock2.

When the goal is dock1, at the same wp2, we want RMF to command a dock at dock1.
Both docks are consecutive along the same lane segment and cannot be modeled as separate parallel lanes for physical/layout reasons.

I modeled two consecutive docking waypoints on the same lane. Each dock has a distinct name in the UI, but the fleet adapter rejects the graph, reporting a duplicate and then crashes during startup.

[fleet_adapter-17] [ERROR] [1756963940.089569418] [tinyRobot_fleet_adapter]: Graph provided for fleet [tinyRobot] has 1 duplicate lanes:
[fleet_adapter-17] [ERROR] [1756963940.089676273] [tinyRobot_fleet_adapter]: - [dock_13]
[fleet_adapter-17] [ERROR] [1756963940.089687405] [tinyRobot_fleet_adapter]: Each dock name on a graph must be unique, so we cannot add fleet [tinyRobot]
[fleet_adapter-17] Starting fleet adapter...
[fleet_adapter-17] Traceback (most recent call last):
  ...
[fleet_adapter-17]     fleet_handle.more().set_planner_cache_reset_size(2500)
[fleet_adapter-17] AttributeError: 'NoneType' object has no attribute 'more'
[fleet_adapter-17] terminate called after throwing an instance of 'std::system_error'
[fleet_adapter-17]   what():  Resource deadlock avoided
[ERROR] [fleet_adapter-17]: process has died ...
Image

Steps to reproduce the bug

modeled two consecutive docking waypoints on the same lane

Expected behavior

No response

Actual behavior

No response

Additional information or screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions