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

Create service context in main #224

Merged
merged 2 commits into from
Dec 14, 2021

Conversation

norro
Copy link
Collaborator

@norro norro commented Dec 13, 2021

Context passed to the lifecycle services needs to be created in main.

Fixes #223

Signed-off-by: Nordmann Arne (CR/ADT3) [email protected]

Signed-off-by: Nordmann Arne (CR/ADT3) <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Dec 13, 2021

Codecov Report

Merging #224 (a86a1ec) into master (27b4d4f) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #224      +/-   ##
==========================================
- Coverage   63.49%   63.42%   -0.07%     
==========================================
  Files          16       16              
  Lines        2153     2149       -4     
  Branches      643      641       -2     
==========================================
- Hits         1367     1363       -4     
- Misses        471      472       +1     
+ Partials      315      314       -1     
Impacted Files Coverage Δ
rclc_lifecycle/src/rclc_lifecycle/rclc_lifecycle.c 48.78% <100.00%> (-0.03%) ⬇️
rclc/src/rclc/action_goal_handle.c 59.87% <0.00%> (-1.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 27b4d4f...a86a1ec. Read the comment docs.

@norro norro requested a review from JanStaschulat December 13, 2021 15:17
Copy link
Contributor

@JanStaschulat JanStaschulat left a comment

Choose a reason for hiding this comment

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

Fine for me, but I don't see why this fixes the problem, as the lifecycle_node was also created in main function

rclc_lifecycle_node_t lifecycle_node;

@JanStaschulat
Copy link
Contributor

JanStaschulat commented Dec 13, 2021

Error on buid farm:
https://build.ros2.org/job/Rpr__rclc__ubuntu_focal_amd64/333/gcc/

Signed-off-by: Nordmann Arne (CR/ADT3) <[email protected]>
@JanStaschulat
Copy link
Contributor

no backport to Galactic, Foxy possible due to API break in
rclc_lifecycle_init_get_state_server(), rclc_lifecycle_init_get_available_states_server() and rclc_lifecycle_init_change_state_server().

@norro norro merged commit f691d2f into ros2:master Dec 14, 2021
@norro norro deleted the feature/fix-lifecycle-node branch December 14, 2021 09:02
@JanStaschulat
Copy link
Contributor

JanStaschulat commented Dec 14, 2021

@norro could you add a note in the header file for Galactic and Foxy and in rclc_examples, that lifecycle with context does not work for Galactic and Foxy but that the the issue was fixed in Rolling?

@norro
Copy link
Collaborator Author

norro commented Dec 14, 2021

Yes, I will do.

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.

[rclc_lifecycle, Rolling] Segfault in example_lifecycle_node
3 participants