-
Notifications
You must be signed in to change notification settings - Fork 276
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
Elevator state is not being publish on the ground floor #2153
Comments
This is an artifact of using There should be no impact on using the message as part of a callback (the field will still be set to zero), but if echoing on the command line is critical, we could add another field like "is set" to guarantee some output. |
Interesting. I don't think it is critical to be able to echo it as long as the we still get the correct value on the subscription. My only concern is that it may confuse users that are not aware of that specific behavior. Maybe we could add a little comment at the top of the .sdf file? I can go ahead and create the appropriate PR if you agree on the "solution". |
I think a comment would be helpful. Or we can 1-index all of our arrays from now on. 😉 |
I agree, let's go with the comment for now and keep it in mind from now on. |
Closes #2153 Signed-off-by: Michael Carroll <[email protected]>
Closes #2153 Signed-off-by: Michael Carroll <[email protected]>
Environment
Description
state
topic on each floor it is in.Steps to reproduce
Output
We get the expected behavior when we send the elevator to any of the upper floors:
However, when we send the elevator to the ground floor (
gz topic -t "/model/elevator/cmd" -m gz.msgs.Int32 -p "data: 0"
), we stop receiving information on the console:The text was updated successfully, but these errors were encountered: