Robotics StackExchange | Archived questions

How to understand the docs.ros2.org

Hi!

I'm trying to understand the writing action tutorial in ROS2 Humble : Writing an action server and client (C++) and there something that so confuse:

  1. The #include "rclcpp_action/rclcpp_action.hpp"

When i searched this on google, it show a rclcpp_action: ROS Action Client Library for C++

rclcpp_action provides the canonical C++ API for interacting with ROS Actions. It consists of these main components:

Action Client
    rclcpp_action/client.hpp
    rclcpp_action/create_client.hpp
    rclcpp_action/client_goal_handle.hpp
Action Server
    rclcpp_action/server.hpp
    rclcpp_action/create_server.hpp
    rclcpp_action/server_goal_handle.hpp

My question is: where is the rclcpp_action.hpp ?

2 . The #include "rclcpp_components/register_node_macro.hpp"

I do found the registernodemacro.hpp File Reference

but there is "include dependency graph" that i don't know how to read that. Sorry that i don't have enough points to upload picture yet. Could you tell me how that graph work?

Tks for reading and have a nice day!

Asked by AnhHazz on 2023-07-15 11:00:43 UTC

Comments

Answers

1, I found it on the API documents here: rclcpp_action, under the FIle Hierarchy. May be the one in the post isn't updated yet.

2, I think it can be understand by looking at the File Hierarchy of rclcpp_components. Now i know how to include something.

Asked by AnhHazz on 2023-07-17 20:25:33 UTC

Comments