Package Summary

Tags No category tags.
Version 0.6.3
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ros2/examples.git
VCS Type git
VCS Version crystal
Last Updated 2019-03-09
Dev Status DEVELOPED
Released RELEASED

Package Description

Examples of minimal subscribers

Additional Links

No additional links.

Maintainers

  • Jacob Perron

Authors

  • Mikael Arguedas
  • Morgan Quigley

Minimal subscriber cookbook recipes

This package contains a few different strategies for creating nodes which receive messages: * lambda.cpp uses a C++11 lambda function * member_function.cpp uses a C++ member function callback * not_composable.cpp uses a global function callback without a Node subclass

Note that not_composable.cpp instantiates a rclcpp::Node without subclassing it. This was the typical usage model in ROS 1, but this style of coding is not compatible with composing multiple nodes into a single process. Thus, it is no longer the recommended style for ROS 2.

All of these nodes do the same thing: they create a node called minimal_listener and subscribe to a topic named topic which is of datatype std_msgs/String. When a message arrives on that topic, the node prints it to the screen. We provide multiple examples of different coding styles which achieve this behavior in order to demonstrate that there are many ways to do this in ROS 2.

CHANGELOG

Could not convert RST to MD: No such file or directory - pandoc

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged examples_rclcpp_minimal_subscriber at answers.ros.org

Package Summary

Tags No category tags.
Version 0.5.1
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ros2/examples.git
VCS Type git
VCS Version bouncy
Last Updated 2018-06-27
Dev Status DEVELOPED
Released RELEASED

Package Description

Examples of minimal subscribers

Additional Links

No additional links.

Maintainers

  • Mikael Arguedas

Authors

  • Morgan Quigley

Minimal subscriber cookbook recipes

This package contains a few different strategies for creating nodes which receive messages: * lambda.cpp uses a C++11 lambda function * member_function.cpp uses a C++ member function callback * not_composable.cpp uses a global function callback without a Node subclass

Note that not_composable.cpp instantiates a rclcpp::Node without subclassing it. This was the typical usage model in ROS 1, but unfortunately this style of coding is not compatible with composing multiple nodes into a single process. Thus, it is no longer the recommended style for ROS 2.

All of these nodes do the same thing: they create a node called minimal_listener and subscribe to a topic named topic which is of datatype std_msgs/String. When a message arrives on that topic, the node prints it to the screen. We provide multiple examples of different coding styles which achieve this behavior in order to demonstrate that there are many ways to do this in ROS 2.

CHANGELOG

Could not convert RST to MD: No such file or directory - pandoc

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged examples_rclcpp_minimal_subscriber at answers.ros.org

Package Summary

Tags No category tags.
Version 0.4.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ros2/examples.git
VCS Type git
VCS Version ardent
Last Updated 2017-12-08
Dev Status DEVELOPED
Released RELEASED

Package Description

Examples of minimal subscribers

Additional Links

No additional links.

Maintainers

  • Morgan Quigley

Authors

No additional authors.

Minimal subscriber cookbook recipes

This package contains a few different strategies for creating nodes which receive messages: * lambda.cpp uses a C++11 lambda function * member_function.cpp uses a C++ member function callback * not_composable.cpp uses a global function callback without a Node subclass

Note that not_composable.cpp instantiates a rclcpp::Node without subclassing it. This was the typical usage model in ROS 1, but unfortunately this style of coding is not compatible with composing multiple nodes into a single process. Thus, it is no longer the recommended style for ROS 2.

All of these nodes do the same thing: they create a node called minimal_listener and subscribe to a topic named topic which is of datatype std_msgs/String. When a message arrives on that topic, the node prints it to the screen. We provide multiple examples of different coding styles which achieve this behavior in order to demonstrate that there are many ways to do this in ROS 2.

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged examples_rclcpp_minimal_subscriber at answers.ros.org