New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Robot doesn't create lift session with open door #314
Comments
Also, lift sessions don't get terminated when there is a door that stays open (or no door at all) after reaching a floor level. |
Sorry for not noticing this issue report sooner. I'm a bit perplexed by the problem that you're describing. I'm looking through the source code and I don't see anywhere that requires the lift doors to ever be closed.
Lift sessions are managed by the lift supervisor which has no expectation of the door being open or closed; it just forwards whatever is asked for by the fleet adapters. The fleet adapter only ever requests the door to be opened. The assumption is that the lift door will automatically close when it needs to, so there's no need for us to explicitly command a closed door. The workflow for lift usage is only blocked on waiting for the door to be open. We don't have any condition that waits for the door to be closed. Waiting for a lift session to end doesn't check the door state at all. I think there must be some other problem blocking the workflow for you. Could you recreate the issue and then run
and let me know what messages come out of each? |
Thanks for the reply. I hope I can narrow down the issue next week if I have some free time. I'll have a look if I added something that may cause this. I remember there was some confusion about what to return for the value of I'm also not sure if the other issue I reported (and is reproducible in the sim) has an effect or is intended behaviour. Maybe you can have a look at that too. |
I noticed that there seems to be an empty session that blocks the lift request by the robot:
or this:
|
Before proceeding, is there an existing issue or discussion for this?
OS and version
Ubuntu 22.04
Open-RMF installation type
Binaries
Other Open-RMF installation methods
No response
Open-RMF version or commit hash
0.0.1-1jammy.20231206.081430
ROS distribution
Iron
ROS installation type
Binaries
Other ROS installation methods
No response
Package or library, if applicable
No response
Description of the bug
In our facility we have an agv lift that doesn't have a door on the first floor level, so in the Lift adapter API (using the lift adapter template), I set the door to always be open when the lift is currently at that floor, ready for the robot to move in or out.
This causes a problem, as the robot apparently expects a closed door and a lift session only is created when the door is initially closed. I could create a 'virtual door' that only 'opens' when there is a request, but 1. that doesn't represent the real state 2. requires the integration of some arbitrary triggers for door control depending on the robot
I'm not sure if this is already addressed in #310. Unfortunately I don't have the opportunity to test that, maybe someone can have a look at it.
Steps to reproduce the bug
Expected behavior
The robot should request a Lift session and move into the lift
Actual behavior
No lift session is created (the robot waits in front of the lift and nothing happens), even though the door is open.
Additional information or screenshots
No response
The text was updated successfully, but these errors were encountered: