Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Meta-ROS documentation
Meta-ROS documentation
  • Getting Started
  • Setting up Hardware
    • Mini PCs
    • CAN Devices
      • CAN Motors
        • BRITER Encoders
  • Perception Layer
    • fdilink_ahrs
  • Decision Layer
  • Decomposition Layer
    • gimbal_controller
    • meta_chassis_controller
      • omni_chassis_controller
  • Execution Layer
    • meta_hardware
  • On Modern C++
    • std::thread and std::jthread
Back to top
View this page

On Modern C++¶

This projects mainly deals with rclcpp, the C++ client library of ROS 2. C++ is a quite complicated and troublesome language. This section records some bad experiences we had with C++ and how Modern C++ may (or may not) solve these issues.

  • std::thread and std::jthread
    • A simple example (that doesn’t shutdown correctly)
    • Shutdown threads correctly with std::thread
    • std::jthread in C++20
    • std::stop_token
Next
std::thread and std::jthread
Previous
meta_hardware
Copyright © 2024, Chiming Ni, Xinchen Yao
Made with Sphinx and @pradyunsg's Furo