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

rcl_action - user friendly error messages for invalid transitions #448

Merged
merged 3 commits into from
May 21, 2019

Conversation

skucheria
Copy link
Member

@skucheria skucheria commented May 21, 2019

Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
@skucheria skucheria force-pushed the kucheria/rcl_action branch from bcabfa5 to d8517c4 Compare May 21, 2019 18:36
@skucheria skucheria requested a review from jacobperron May 21, 2019 18:39
Copy link
Member

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

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

I think it would be better if the descriptions were tied closer to their enum types.
We can declare them in types.h (close to the enums) and define them in types.c.
A comment can also be added to the enum with a reminder that the description variables should be changed if the enum values change.

Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
@skucheria skucheria force-pushed the kucheria/rcl_action branch from 4375391 to cf88f63 Compare May 21, 2019 21:26
Copy link
Member

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

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

One typo, otherwise LGTM after another round of CI 👍

@@ -132,6 +132,13 @@ rcl_action_cancel_response_fini(rcl_action_cancel_response_t * cancel_response)
return RCL_RET_OK;
}

/// Values should be changed if enum values chang
Copy link
Member

Choose a reason for hiding this comment

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

typo: "change"

Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
@skucheria skucheria force-pushed the kucheria/rcl_action branch from b8128df to 2fdf2bf Compare May 21, 2019 21:46
@skucheria
Copy link
Member Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

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.

[rcl_action] User friendly error messages for invalid action state transitions
2 participants