Skip to content

Small rclc lifecycle tutorial#180

Merged
norro merged 3 commits into
masterfrom
tutorial/rclc_lifecycle
Jul 15, 2020
Merged

Small rclc lifecycle tutorial#180
norro merged 3 commits into
masterfrom
tutorial/rclc_lifecycle

Conversation

@norro
Copy link
Copy Markdown
Contributor

@norro norro commented Jul 14, 2020

Shows how to set up an rclc lifecycle node, transition through its lifecycle states, and assign callbacks to lifecycle transitions.

Fixes issue #179 as part of #143 .

norro added 2 commits July 14, 2020 11:50
Signed-off-by: Arne Nordmann <arne.nordmann@de.bosch.com>
* Shows how to set up an rclc lifecycle node, transition through its lifecycle states, and assign callbacks to lifecycle transitions

#179

Signed-off-by: Arne Nordmann <arne.nordmann@de.bosch.com>
@norro norro requested a review from ralph-lange July 14, 2020 10:04
@norro norro self-assigned this Jul 14, 2020
Copy link
Copy Markdown
Contributor

@ralph-lange ralph-lange left a comment

Choose a reason for hiding this comment

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

Nice work. Some minor comments only.

Comment thread _docs/tutorials/core/programming_rcl_rclc/index.md Outdated
Comment thread _docs/tutorials/core/programming_rcl_rclc/index.md
Comment thread _docs/tutorials/core/programming_rcl_rclc/index.md Outdated
Comment thread _docs/tutorials/core/programming_rcl_rclc/index.md Outdated
Comment thread _docs/tutorials/core/programming_rcl_rclc/index.md Outdated
Comment thread _docs/tutorials/core/programming_rcl_rclc/index.md Outdated
Comment thread _docs/tutorials/core/programming_rcl_rclc/index.md Outdated

An example, how to use the RCLC Lifecycle Node is given in the file `lifecycle_node.c` in the [rclc_examples](https://github.com/micro-ROS/rclc/tree/master/rclc_examples) package.

The state machine publishes state changes, however, lifecycle services are not yet exposed via ROS 2 services (tbd).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I propose to open an issue on that at ros2/rcl and notify the original lifecycle developer on it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think this is actually intended. The services need to be set in the context of the node, so our statemachine-node-bundle seems to be a good place for it. See micro-ROS/rclc#40

Thanks for the review, Ralph!

Signed-off-by: Arne Nordmann <arne.nordmann@de.bosch.com>
@norro norro merged commit d96b8ed into master Jul 15, 2020
@norro norro deleted the tutorial/rclc_lifecycle branch July 15, 2020 07:47
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