Skip to content

Commit

Permalink
Add include and type alias to action server example
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobperron committed Oct 11, 2018
1 parent 2c7e9e3 commit 2fb606c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions articles/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ Disclaimer: These examples show how we **imagine** actions to be used, but it is
Creating an action server:

```c++
#include "example_interfaces/action/fibonacci.hpp"
using Fibonacci = example_interfaces::action::Fibonacci;
...
auto node = rclcpp::Node::make_shared("my_node");
auto server = node->create_action_server<Fibonacci>("fibonacci", handle_goal, handle_cancel);
```
Expand Down

0 comments on commit 2fb606c

Please sign in to comment.