ROS2 Learning
Functions | Variables
simple_subscriber_node.cpp File Reference

A basic subscriber node Not recommend this style, composition of multiple nodes in the same executable is not possible. Example purpose It's useful to look how to use WallRate and exceptions. More...

#include "rclcpp/rclcpp.hpp"
#include "std_msgs/msg/string.hpp"
Include dependency graph for simple_subscriber_node.cpp:

Functions

void TopicCallback (const std_msgs::msg::String::SharedPtr msg)
 
int main (int argc, char *argv[])
 

Variables

std::shared_ptr< rclcpp::Node > node = nullptr
 

Detailed Description

A basic subscriber node Not recommend this style, composition of multiple nodes in the same executable is not possible. Example purpose It's useful to look how to use WallRate and exceptions.

A basic subscriber node Not recommend this style, composition of multiple nodes in the same executable is not possible. Example purpose.

Author
Antonio Mauro Galiano Contact: https://www.linkedin.com/in/antoniomaurogaliano/