No description
Find a file
mergify[bot] 15edc93a5f
Use parantheses around logging macro parameter (#1820) (#1823)
* Use parantheses around logging macro parameter

This allows the macro to expand "correctly", i.e. macro argument
expression is fully evaluated before use.

Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>

* Remove redundant parantheses around macro param

`decltype(X)` already provides sufficient "scoping" to the macro
parameter `X`.

Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>

* Add test case for expressions as logging param

Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
(cherry picked from commit f7bb88fc8fabcaf5008dfe87b5aec7d2269ba147)

Co-authored-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
2022-02-04 16:57:44 -05:00
.github advise to ask questions on ROS answers 2018-02-26 22:01:36 -08:00
rclcpp Use parantheses around logging macro parameter (#1820) (#1823) 2022-02-04 16:57:44 -05:00
rclcpp_action 2.4.1 2022-01-31 13:58:28 -08:00
rclcpp_components 2.4.1 2022-01-31 13:58:28 -08:00
rclcpp_lifecycle 2.4.1 2022-01-31 13:58:28 -08:00
.gitignore add wait_for_action_server() for action clients (#598) 2018-12-06 18:57:25 -08:00
CONTRIBUTING.md add section about DCO to CONTRIBUTING.md 2019-03-20 08:38:07 -07:00
LICENSE update license file to keep copyright template 2015-04-03 12:30:27 -07:00
README.md Foxy README now points to foxy docs (#1794) 2021-10-04 08:52:41 -04:00

rclcpp

This repository contains the source code for the ROS Client Library for C++ package, included with a standard install of any ROS 2 distro.

rclcpp provides the standard C++ API for interacting with ROS 2.

Usage

#include "rclcpp/rclcpp.hpp" allows use of the most common elements of the ROS 2 system.

Visit the rclcpp API documentation for a complete list of its main components.

Examples

The ROS 2 tutorials Writing a simple publisher and subscriber. and Writing a simple service and client contain some examples of rclcpp APIs in use.