Skip to content
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

Fix/correct keyword state topic information #49

Open
wants to merge 3 commits into
base: humble-devel
Choose a base branch
from

Conversation

bekirbostanci
Copy link

State message include information part and this key name is not correct in the script
Correct name of the key is not informations it is information

image

@@ -665,7 +665,7 @@ def _update_state_from_adapter(self, order_state: VDAOrderState):
"distance_since_last_node": order_state.state.distance_since_last_node,
"battery_state": order_state.state.battery_state,
"errors": current_errors + order_state.state.errors,
"informations": order_state.state.informations
"information": order_state.state.information
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @bekirbostanci for this to work the field must also be renamed in vda5050_msgs/msg/OrderState.msg, right ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes you are right I changed in my workspace however I forgot it,

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it also the message

Changed informations key to information
@bekirbostanci bekirbostanci changed the title fix: correct keyword state topic information Fix/correct keyword state topic information Jan 24, 2024
Copy link
Member

@miguelgarcia miguelgarcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey informations is also referenced in other places, like include/vda5050_connector/handler.hpp and test/adapter/handler_execution/handler_execution_test.cpp. If those files aren't also updated, things will break

@miguelgarcia
Copy link
Member

Code looks good to me ! Great job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants