![]() |
ros2_logging_fmt package from ros2_logging_fmt reporos2_logging_fmt |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | MIT |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/facontidavide/ros2_logging_fmt.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2022-08-05 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Davide Faconti
Authors
ros2_logging_fmt
It is the same as rclcpp logging but much nicer, using fmt instead of printf-like formatting.
Advantages:
- More type safe that “printf-style” API.
- Faster execution.
- Powerful syntax (see examples ).
- Thread safe.
- It will not allocate any memory (unless for particularly long messages, and only once).
NOTE: stil under construction. PR and suggestions are welcome.
Example
#include "ros2_logging_fmt/ros2_logging_fmt.hpp"
int main(int argc, char * argv[])
{
rclcpp::init(argc, argv);
rclcpp::Node node("test_node");
std::string world = "world";
RCLCPP_INFO(node.get_logger(), "Hello %s number %d", world.c_str(), 42);
RCLCPP_ERROR(node.get_logger(), "We have %d errors", 99);
RCLCPP_WARN(node.get_logger(), "Warning: %f > %f", 30.1, 30.0);
RCLCPP_DEBUG(node.get_logger(), "DEBUG MESSAGE");
ros2_logging_fmt::Logger logger(node.get_logger());
logger.info("Hello {} number {}", world, 42);
logger.error("We have {} errors", 99);
logger.warn("Warning: {} > {}", 30.1, 30.0);
logger.debug("DEBUG MESSAGE");
rclcpp::shutdown();
return 0;
}
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
ament_lint_auto | |
ament_lint_common | |
rclcpp |
System Dependencies
Name |
---|
fmt |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_logging_fmt at Robotics Stack Exchange
![]() |
ros2_logging_fmt package from ros2_logging_fmt reporos2_logging_fmt |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | MIT |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/facontidavide/ros2_logging_fmt.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2022-08-05 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Davide Faconti
Authors
ros2_logging_fmt
It is the same as rclcpp logging but much nicer, using fmt instead of printf-like formatting.
Advantages:
- More type safe that “printf-style” API.
- Faster execution.
- Powerful syntax (see examples ).
- Thread safe.
- It will not allocate any memory (unless for particularly long messages, and only once).
NOTE: stil under construction. PR and suggestions are welcome.
Example
#include "ros2_logging_fmt/ros2_logging_fmt.hpp"
int main(int argc, char * argv[])
{
rclcpp::init(argc, argv);
rclcpp::Node node("test_node");
std::string world = "world";
RCLCPP_INFO(node.get_logger(), "Hello %s number %d", world.c_str(), 42);
RCLCPP_ERROR(node.get_logger(), "We have %d errors", 99);
RCLCPP_WARN(node.get_logger(), "Warning: %f > %f", 30.1, 30.0);
RCLCPP_DEBUG(node.get_logger(), "DEBUG MESSAGE");
ros2_logging_fmt::Logger logger(node.get_logger());
logger.info("Hello {} number {}", world, 42);
logger.error("We have {} errors", 99);
logger.warn("Warning: {} > {}", 30.1, 30.0);
logger.debug("DEBUG MESSAGE");
rclcpp::shutdown();
return 0;
}
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
ament_lint_auto | |
ament_lint_common | |
rclcpp |
System Dependencies
Name |
---|
fmt |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_logging_fmt at Robotics Stack Exchange
![]() |
ros2_logging_fmt package from ros2_logging_fmt reporos2_logging_fmt |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | MIT |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/facontidavide/ros2_logging_fmt.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2022-08-05 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Davide Faconti
Authors
ros2_logging_fmt
It is the same as rclcpp logging but much nicer, using fmt instead of printf-like formatting.
Advantages:
- More type safe that “printf-style” API.
- Faster execution.
- Powerful syntax (see examples ).
- Thread safe.
- It will not allocate any memory (unless for particularly long messages, and only once).
NOTE: stil under construction. PR and suggestions are welcome.
Example
#include "ros2_logging_fmt/ros2_logging_fmt.hpp"
int main(int argc, char * argv[])
{
rclcpp::init(argc, argv);
rclcpp::Node node("test_node");
std::string world = "world";
RCLCPP_INFO(node.get_logger(), "Hello %s number %d", world.c_str(), 42);
RCLCPP_ERROR(node.get_logger(), "We have %d errors", 99);
RCLCPP_WARN(node.get_logger(), "Warning: %f > %f", 30.1, 30.0);
RCLCPP_DEBUG(node.get_logger(), "DEBUG MESSAGE");
ros2_logging_fmt::Logger logger(node.get_logger());
logger.info("Hello {} number {}", world, 42);
logger.error("We have {} errors", 99);
logger.warn("Warning: {} > {}", 30.1, 30.0);
logger.debug("DEBUG MESSAGE");
rclcpp::shutdown();
return 0;
}
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
ament_lint_auto | |
ament_lint_common | |
rclcpp |
System Dependencies
Name |
---|
fmt |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_logging_fmt at Robotics Stack Exchange
![]() |
ros2_logging_fmt package from ros2_logging_fmt reporos2_logging_fmt |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | MIT |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/facontidavide/ros2_logging_fmt.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2022-08-05 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Davide Faconti
Authors
ros2_logging_fmt
It is the same as rclcpp logging but much nicer, using fmt instead of printf-like formatting.
Advantages:
- More type safe that “printf-style” API.
- Faster execution.
- Powerful syntax (see examples ).
- Thread safe.
- It will not allocate any memory (unless for particularly long messages, and only once).
NOTE: stil under construction. PR and suggestions are welcome.
Example
#include "ros2_logging_fmt/ros2_logging_fmt.hpp"
int main(int argc, char * argv[])
{
rclcpp::init(argc, argv);
rclcpp::Node node("test_node");
std::string world = "world";
RCLCPP_INFO(node.get_logger(), "Hello %s number %d", world.c_str(), 42);
RCLCPP_ERROR(node.get_logger(), "We have %d errors", 99);
RCLCPP_WARN(node.get_logger(), "Warning: %f > %f", 30.1, 30.0);
RCLCPP_DEBUG(node.get_logger(), "DEBUG MESSAGE");
ros2_logging_fmt::Logger logger(node.get_logger());
logger.info("Hello {} number {}", world, 42);
logger.error("We have {} errors", 99);
logger.warn("Warning: {} > {}", 30.1, 30.0);
logger.debug("DEBUG MESSAGE");
rclcpp::shutdown();
return 0;
}
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
ament_lint_auto | |
ament_lint_common | |
rclcpp |
System Dependencies
Name |
---|
fmt |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_logging_fmt at Robotics Stack Exchange
![]() |
ros2_logging_fmt package from ros2_logging_fmt reporos2_logging_fmt |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | MIT |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/facontidavide/ros2_logging_fmt.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2022-08-05 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Davide Faconti
Authors
ros2_logging_fmt
It is the same as rclcpp logging but much nicer, using fmt instead of printf-like formatting.
Advantages:
- More type safe that “printf-style” API.
- Faster execution.
- Powerful syntax (see examples ).
- Thread safe.
- It will not allocate any memory (unless for particularly long messages, and only once).
NOTE: stil under construction. PR and suggestions are welcome.
Example
#include "ros2_logging_fmt/ros2_logging_fmt.hpp"
int main(int argc, char * argv[])
{
rclcpp::init(argc, argv);
rclcpp::Node node("test_node");
std::string world = "world";
RCLCPP_INFO(node.get_logger(), "Hello %s number %d", world.c_str(), 42);
RCLCPP_ERROR(node.get_logger(), "We have %d errors", 99);
RCLCPP_WARN(node.get_logger(), "Warning: %f > %f", 30.1, 30.0);
RCLCPP_DEBUG(node.get_logger(), "DEBUG MESSAGE");
ros2_logging_fmt::Logger logger(node.get_logger());
logger.info("Hello {} number {}", world, 42);
logger.error("We have {} errors", 99);
logger.warn("Warning: {} > {}", 30.1, 30.0);
logger.debug("DEBUG MESSAGE");
rclcpp::shutdown();
return 0;
}
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
ament_lint_auto | |
ament_lint_common | |
rclcpp |
System Dependencies
Name |
---|
fmt |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_logging_fmt at Robotics Stack Exchange
![]() |
ros2_logging_fmt package from ros2_logging_fmt reporos2_logging_fmt |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | MIT |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/facontidavide/ros2_logging_fmt.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2022-08-05 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Davide Faconti
Authors
ros2_logging_fmt
It is the same as rclcpp logging but much nicer, using fmt instead of printf-like formatting.
Advantages:
- More type safe that “printf-style” API.
- Faster execution.
- Powerful syntax (see examples ).
- Thread safe.
- It will not allocate any memory (unless for particularly long messages, and only once).
NOTE: stil under construction. PR and suggestions are welcome.
Example
#include "ros2_logging_fmt/ros2_logging_fmt.hpp"
int main(int argc, char * argv[])
{
rclcpp::init(argc, argv);
rclcpp::Node node("test_node");
std::string world = "world";
RCLCPP_INFO(node.get_logger(), "Hello %s number %d", world.c_str(), 42);
RCLCPP_ERROR(node.get_logger(), "We have %d errors", 99);
RCLCPP_WARN(node.get_logger(), "Warning: %f > %f", 30.1, 30.0);
RCLCPP_DEBUG(node.get_logger(), "DEBUG MESSAGE");
ros2_logging_fmt::Logger logger(node.get_logger());
logger.info("Hello {} number {}", world, 42);
logger.error("We have {} errors", 99);
logger.warn("Warning: {} > {}", 30.1, 30.0);
logger.debug("DEBUG MESSAGE");
rclcpp::shutdown();
return 0;
}
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
ament_lint_auto | |
ament_lint_common | |
rclcpp |
System Dependencies
Name |
---|
fmt |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_logging_fmt at Robotics Stack Exchange
![]() |
ros2_logging_fmt package from ros2_logging_fmt reporos2_logging_fmt |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | MIT |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/facontidavide/ros2_logging_fmt.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2022-08-05 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Davide Faconti
Authors
ros2_logging_fmt
It is the same as rclcpp logging but much nicer, using fmt instead of printf-like formatting.
Advantages:
- More type safe that “printf-style” API.
- Faster execution.
- Powerful syntax (see examples ).
- Thread safe.
- It will not allocate any memory (unless for particularly long messages, and only once).
NOTE: stil under construction. PR and suggestions are welcome.
Example
#include "ros2_logging_fmt/ros2_logging_fmt.hpp"
int main(int argc, char * argv[])
{
rclcpp::init(argc, argv);
rclcpp::Node node("test_node");
std::string world = "world";
RCLCPP_INFO(node.get_logger(), "Hello %s number %d", world.c_str(), 42);
RCLCPP_ERROR(node.get_logger(), "We have %d errors", 99);
RCLCPP_WARN(node.get_logger(), "Warning: %f > %f", 30.1, 30.0);
RCLCPP_DEBUG(node.get_logger(), "DEBUG MESSAGE");
ros2_logging_fmt::Logger logger(node.get_logger());
logger.info("Hello {} number {}", world, 42);
logger.error("We have {} errors", 99);
logger.warn("Warning: {} > {}", 30.1, 30.0);
logger.debug("DEBUG MESSAGE");
rclcpp::shutdown();
return 0;
}
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
ament_lint_auto | |
ament_lint_common | |
rclcpp |
System Dependencies
Name |
---|
fmt |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_logging_fmt at Robotics Stack Exchange
![]() |
ros2_logging_fmt package from ros2_logging_fmt reporos2_logging_fmt |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | MIT |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/facontidavide/ros2_logging_fmt.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2022-08-05 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Davide Faconti
Authors
ros2_logging_fmt
It is the same as rclcpp logging but much nicer, using fmt instead of printf-like formatting.
Advantages:
- More type safe that “printf-style” API.
- Faster execution.
- Powerful syntax (see examples ).
- Thread safe.
- It will not allocate any memory (unless for particularly long messages, and only once).
NOTE: stil under construction. PR and suggestions are welcome.
Example
#include "ros2_logging_fmt/ros2_logging_fmt.hpp"
int main(int argc, char * argv[])
{
rclcpp::init(argc, argv);
rclcpp::Node node("test_node");
std::string world = "world";
RCLCPP_INFO(node.get_logger(), "Hello %s number %d", world.c_str(), 42);
RCLCPP_ERROR(node.get_logger(), "We have %d errors", 99);
RCLCPP_WARN(node.get_logger(), "Warning: %f > %f", 30.1, 30.0);
RCLCPP_DEBUG(node.get_logger(), "DEBUG MESSAGE");
ros2_logging_fmt::Logger logger(node.get_logger());
logger.info("Hello {} number {}", world, 42);
logger.error("We have {} errors", 99);
logger.warn("Warning: {} > {}", 30.1, 30.0);
logger.debug("DEBUG MESSAGE");
rclcpp::shutdown();
return 0;
}
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
ament_lint_auto | |
ament_lint_common | |
rclcpp |
System Dependencies
Name |
---|
fmt |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_logging_fmt at Robotics Stack Exchange
![]() |
ros2_logging_fmt package from ros2_logging_fmt reporos2_logging_fmt |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | MIT |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/facontidavide/ros2_logging_fmt.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2022-08-05 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Davide Faconti
Authors
ros2_logging_fmt
It is the same as rclcpp logging but much nicer, using fmt instead of printf-like formatting.
Advantages:
- More type safe that “printf-style” API.
- Faster execution.
- Powerful syntax (see examples ).
- Thread safe.
- It will not allocate any memory (unless for particularly long messages, and only once).
NOTE: stil under construction. PR and suggestions are welcome.
Example
#include "ros2_logging_fmt/ros2_logging_fmt.hpp"
int main(int argc, char * argv[])
{
rclcpp::init(argc, argv);
rclcpp::Node node("test_node");
std::string world = "world";
RCLCPP_INFO(node.get_logger(), "Hello %s number %d", world.c_str(), 42);
RCLCPP_ERROR(node.get_logger(), "We have %d errors", 99);
RCLCPP_WARN(node.get_logger(), "Warning: %f > %f", 30.1, 30.0);
RCLCPP_DEBUG(node.get_logger(), "DEBUG MESSAGE");
ros2_logging_fmt::Logger logger(node.get_logger());
logger.info("Hello {} number {}", world, 42);
logger.error("We have {} errors", 99);
logger.warn("Warning: {} > {}", 30.1, 30.0);
logger.debug("DEBUG MESSAGE");
rclcpp::shutdown();
return 0;
}
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
ament_lint_auto | |
ament_lint_common | |
rclcpp |
System Dependencies
Name |
---|
fmt |