Package symbol

autoware_agnocast_wrapper package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_specs autoware_geography_utils autoware_global_parameter_loader autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_planning_test_manager autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 0.50.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-03-17
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Wrapper macros for Agnocast (true zero-copy communication library)

Maintainers

  • Takahiro Ishikawa-Aso
  • Koichi Imai
  • Atsushi Yano

Authors

No additional authors.

autoware_agnocast_wrapper

The purpose of this package is to integrate Agnocast, a zero-copy middleware, into each topic in Autoware with minimal side effects. Agnocast is a library designed to work alongside ROS 2, enabling true zero-copy publish/subscribe communication for all ROS 2 message types, including unsized message types.

This package provides macros that wrap functions for publish/subscribe operations and smart pointer types for handling ROS 2 messages. When Autoware is built using the default build command, Agnocast is not enabled. However, setting the environment variable ENABLE_AGNOCAST=1 enables Agnocast and results in a build that includes its integration. This design ensures backward compatibility for users who are unaware of Agnocast, minimizing disruption.

Two Integration Approaches

This package provides two approaches for integrating Agnocast. Both will coexist for the foreseeable future.

1. Node Wrapper (agnocast_wrapper::Node)

Use this when you want the entire node to transparently switch between rclcpp::Node and agnocast::Node at runtime. The node wrapper automatically selects the correct underlying implementation based on the ENABLE_AGNOCAST environment variable.

Currently supported APIs:

  • Publisher / Subscription / PollingSubscriber
  • Parameters
  • Logger, Clock
  • Callback groups
  • Node interfaces (partial: get_node_base_interface(), get_node_topics_interface(), get_node_parameters_interface())

Note: Timer (create_wall_timer, create_timer) is not yet supported and will be added in a future update.

#include <autoware/agnocast_wrapper/node.hpp>

class MyNode : public autoware::agnocast_wrapper::Node
{
public:
  explicit MyNode(const rclcpp::NodeOptions & options)
  : Node("my_node", options)
  {
    pub_ = create_publisher<std_msgs::msg::String>("output", 10);
    sub_ = create_subscription<std_msgs::msg::String>(
      "input", 10, [this](std::unique_ptr<const std_msgs::msg::String> msg) { /* ... */ });
  }

private:
  autoware::agnocast_wrapper::Publisher<std_msgs::msg::String>::SharedPtr pub_;
  autoware::agnocast_wrapper::Subscription<std_msgs::msg::String>::SharedPtr sub_;
};

To use the Node wrapper in your package, add the following to your CMakeLists.txt:

find_package(autoware_agnocast_wrapper REQUIRED)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

Registering a Node with autoware_agnocast_wrapper_register_node

Instead of calling rclcpp_components_register_node directly, use the autoware_agnocast_wrapper_register_node macro to register your component node. This macro:

  1. Registers the component with rclcpp_components (for component container support)
  2. Creates a standalone executable that can switch between rclcpp::Node and agnocast::Node at runtime based on the ENABLE_AGNOCAST environment variable

When ENABLE_AGNOCAST is not set or set to 0, this macro falls back to standard rclcpp_components_register_node behavior.

find_package(autoware_agnocast_wrapper REQUIRED)

ament_auto_add_library(my_node_component SHARED src/my_node.cpp)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

autoware_agnocast_wrapper_register_node(my_node_component
  PLUGIN "my_package::MyNode"
  EXECUTABLE my_node
)

Parameters:

Parameter Required Default Description
PLUGIN Yes - Fully qualified class name of the component
EXECUTABLE Yes - Executable name for the node
ROS2_EXECUTOR No SingleThreadedExecutor Executor to use when ENABLE_AGNOCAST=0 at runtime
AGNOCAST_EXECUTOR No SingleThreadedAgnocastExecutor Executor to use when ENABLE_AGNOCAST=1 at runtime

Valid executor values:

  • ROS2_EXECUTOR: SingleThreadedExecutor, MultiThreadedExecutor
  • AGNOCAST_EXECUTOR: SingleThreadedAgnocastExecutor, MultiThreadedAgnocastExecutor, CallbackIsolatedAgnocastExecutor, AgnocastOnlySingleThreadedExecutor, AgnocastOnlyMultiThreadedExecutor, AgnocastOnlyCallbackIsolatedExecutor

Node class requirements:

The required PLUGIN base class depends on the AGNOCAST_EXECUTOR type. The generated template enforces this via if constexpr at compile time:

AGNOCAST_EXECUTOR Required PLUGIN base class
AgnocastOnly* executors autoware::agnocast_wrapper::Node
Other agnocast executors Any rclcpp::Node-compatible class

Non-AgnocastOnly executors use NodeInstanceWrapper::get_node_base_interface() directly, which works with any node type (rclcpp::Node, agnocast_wrapper::Node, etc.) without requiring a cast. AgnocastOnly executors require get_agnocast_node(), which is only available on autoware::agnocast_wrapper::Node.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_agnocast_wrapper

0.50.0 (2026-02-14)

  • Merge remote-tracking branch 'origin/main' into humble
  • fix(agnocast): build on jazzy, remove from ground_segmentation_cuda (#11960)
  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome

0.49.0 (2025-12-30)

0.48.0 (2025-11-18)

  • Merge remote-tracking branch 'origin/main' into humble

  • fix(agnocast_wrapper): fix const rvalue reference binding error in AgnocastPollingSubscriber (#11425) fix AgnocastPollingSubscriber in agnocast_wrapper

  • feat(autoware_agnocast_wrapper): support runtime fallback to ROS 2 behavior (#11060)

    • Create message_ptr
    • Create use_agnocast
    • Create Subscription
    • Create Publisher
    • Create PollingSubscriber (wip)
    • Allow copying message_ptr with shared ownership
    • style(pre-commit): autofix
    • Fix typo
    • fix
    • fix
    • style(pre-commit): autofix
    • fix for tidy
    • fix tidy
    • style(pre-commit): autofix
    • try avoiding cpplint error
    • fix
    • fix ament_lint_commont to autoware_lint_common

    * style(pre-commit): autofix ---------Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Koichi Imai <<koichi.imai.2@tier4.jp>> Co-authored-by: Koichi Imai <<45482193+Koichi98@users.noreply.github.com>> Co-authored-by: Takahiro Ishikawa-Aso <<sykwer@gmail.com>> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • Contributors: Guojun Wu, Koichi Imai, Ryohsuke Mitsudome

0.47.1 (2025-08-14)

0.47.0 (2025-08-11)

0.46.0 (2025-06-20)

0.45.0 (2025-05-22)

  • Merge remote-tracking branch 'origin/main' into tmp/notbot/bump_version_base
  • chore: re-introduce agnocast and fix version to v2.1.0 (#10526) delete colcon ignore and fix agnocast version to v2.1.0
  • Contributors: TaikiYamada4, Takahiro Ishikawa-Aso

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_agnocast_wrapper at Robotics Stack Exchange

No version for distro jazzy showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_agnocast_wrapper package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_specs autoware_geography_utils autoware_global_parameter_loader autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_planning_test_manager autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 0.50.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-03-17
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Wrapper macros for Agnocast (true zero-copy communication library)

Maintainers

  • Takahiro Ishikawa-Aso
  • Koichi Imai
  • Atsushi Yano

Authors

No additional authors.

autoware_agnocast_wrapper

The purpose of this package is to integrate Agnocast, a zero-copy middleware, into each topic in Autoware with minimal side effects. Agnocast is a library designed to work alongside ROS 2, enabling true zero-copy publish/subscribe communication for all ROS 2 message types, including unsized message types.

This package provides macros that wrap functions for publish/subscribe operations and smart pointer types for handling ROS 2 messages. When Autoware is built using the default build command, Agnocast is not enabled. However, setting the environment variable ENABLE_AGNOCAST=1 enables Agnocast and results in a build that includes its integration. This design ensures backward compatibility for users who are unaware of Agnocast, minimizing disruption.

Two Integration Approaches

This package provides two approaches for integrating Agnocast. Both will coexist for the foreseeable future.

1. Node Wrapper (agnocast_wrapper::Node)

Use this when you want the entire node to transparently switch between rclcpp::Node and agnocast::Node at runtime. The node wrapper automatically selects the correct underlying implementation based on the ENABLE_AGNOCAST environment variable.

Currently supported APIs:

  • Publisher / Subscription / PollingSubscriber
  • Parameters
  • Logger, Clock
  • Callback groups
  • Node interfaces (partial: get_node_base_interface(), get_node_topics_interface(), get_node_parameters_interface())

Note: Timer (create_wall_timer, create_timer) is not yet supported and will be added in a future update.

#include <autoware/agnocast_wrapper/node.hpp>

class MyNode : public autoware::agnocast_wrapper::Node
{
public:
  explicit MyNode(const rclcpp::NodeOptions & options)
  : Node("my_node", options)
  {
    pub_ = create_publisher<std_msgs::msg::String>("output", 10);
    sub_ = create_subscription<std_msgs::msg::String>(
      "input", 10, [this](std::unique_ptr<const std_msgs::msg::String> msg) { /* ... */ });
  }

private:
  autoware::agnocast_wrapper::Publisher<std_msgs::msg::String>::SharedPtr pub_;
  autoware::agnocast_wrapper::Subscription<std_msgs::msg::String>::SharedPtr sub_;
};

To use the Node wrapper in your package, add the following to your CMakeLists.txt:

find_package(autoware_agnocast_wrapper REQUIRED)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

Registering a Node with autoware_agnocast_wrapper_register_node

Instead of calling rclcpp_components_register_node directly, use the autoware_agnocast_wrapper_register_node macro to register your component node. This macro:

  1. Registers the component with rclcpp_components (for component container support)
  2. Creates a standalone executable that can switch between rclcpp::Node and agnocast::Node at runtime based on the ENABLE_AGNOCAST environment variable

When ENABLE_AGNOCAST is not set or set to 0, this macro falls back to standard rclcpp_components_register_node behavior.

find_package(autoware_agnocast_wrapper REQUIRED)

ament_auto_add_library(my_node_component SHARED src/my_node.cpp)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

autoware_agnocast_wrapper_register_node(my_node_component
  PLUGIN "my_package::MyNode"
  EXECUTABLE my_node
)

Parameters:

Parameter Required Default Description
PLUGIN Yes - Fully qualified class name of the component
EXECUTABLE Yes - Executable name for the node
ROS2_EXECUTOR No SingleThreadedExecutor Executor to use when ENABLE_AGNOCAST=0 at runtime
AGNOCAST_EXECUTOR No SingleThreadedAgnocastExecutor Executor to use when ENABLE_AGNOCAST=1 at runtime

Valid executor values:

  • ROS2_EXECUTOR: SingleThreadedExecutor, MultiThreadedExecutor
  • AGNOCAST_EXECUTOR: SingleThreadedAgnocastExecutor, MultiThreadedAgnocastExecutor, CallbackIsolatedAgnocastExecutor, AgnocastOnlySingleThreadedExecutor, AgnocastOnlyMultiThreadedExecutor, AgnocastOnlyCallbackIsolatedExecutor

Node class requirements:

The required PLUGIN base class depends on the AGNOCAST_EXECUTOR type. The generated template enforces this via if constexpr at compile time:

AGNOCAST_EXECUTOR Required PLUGIN base class
AgnocastOnly* executors autoware::agnocast_wrapper::Node
Other agnocast executors Any rclcpp::Node-compatible class

Non-AgnocastOnly executors use NodeInstanceWrapper::get_node_base_interface() directly, which works with any node type (rclcpp::Node, agnocast_wrapper::Node, etc.) without requiring a cast. AgnocastOnly executors require get_agnocast_node(), which is only available on autoware::agnocast_wrapper::Node.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_agnocast_wrapper

0.50.0 (2026-02-14)

  • Merge remote-tracking branch 'origin/main' into humble
  • fix(agnocast): build on jazzy, remove from ground_segmentation_cuda (#11960)
  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome

0.49.0 (2025-12-30)

0.48.0 (2025-11-18)

  • Merge remote-tracking branch 'origin/main' into humble

  • fix(agnocast_wrapper): fix const rvalue reference binding error in AgnocastPollingSubscriber (#11425) fix AgnocastPollingSubscriber in agnocast_wrapper

  • feat(autoware_agnocast_wrapper): support runtime fallback to ROS 2 behavior (#11060)

    • Create message_ptr
    • Create use_agnocast
    • Create Subscription
    • Create Publisher
    • Create PollingSubscriber (wip)
    • Allow copying message_ptr with shared ownership
    • style(pre-commit): autofix
    • Fix typo
    • fix
    • fix
    • style(pre-commit): autofix
    • fix for tidy
    • fix tidy
    • style(pre-commit): autofix
    • try avoiding cpplint error
    • fix
    • fix ament_lint_commont to autoware_lint_common

    * style(pre-commit): autofix ---------Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Koichi Imai <<koichi.imai.2@tier4.jp>> Co-authored-by: Koichi Imai <<45482193+Koichi98@users.noreply.github.com>> Co-authored-by: Takahiro Ishikawa-Aso <<sykwer@gmail.com>> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • Contributors: Guojun Wu, Koichi Imai, Ryohsuke Mitsudome

0.47.1 (2025-08-14)

0.47.0 (2025-08-11)

0.46.0 (2025-06-20)

0.45.0 (2025-05-22)

  • Merge remote-tracking branch 'origin/main' into tmp/notbot/bump_version_base
  • chore: re-introduce agnocast and fix version to v2.1.0 (#10526) delete colcon ignore and fix agnocast version to v2.1.0
  • Contributors: TaikiYamada4, Takahiro Ishikawa-Aso

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_agnocast_wrapper at Robotics Stack Exchange

No version for distro kilted showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_agnocast_wrapper package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_specs autoware_geography_utils autoware_global_parameter_loader autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_planning_test_manager autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 0.50.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-03-17
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Wrapper macros for Agnocast (true zero-copy communication library)

Maintainers

  • Takahiro Ishikawa-Aso
  • Koichi Imai
  • Atsushi Yano

Authors

No additional authors.

autoware_agnocast_wrapper

The purpose of this package is to integrate Agnocast, a zero-copy middleware, into each topic in Autoware with minimal side effects. Agnocast is a library designed to work alongside ROS 2, enabling true zero-copy publish/subscribe communication for all ROS 2 message types, including unsized message types.

This package provides macros that wrap functions for publish/subscribe operations and smart pointer types for handling ROS 2 messages. When Autoware is built using the default build command, Agnocast is not enabled. However, setting the environment variable ENABLE_AGNOCAST=1 enables Agnocast and results in a build that includes its integration. This design ensures backward compatibility for users who are unaware of Agnocast, minimizing disruption.

Two Integration Approaches

This package provides two approaches for integrating Agnocast. Both will coexist for the foreseeable future.

1. Node Wrapper (agnocast_wrapper::Node)

Use this when you want the entire node to transparently switch between rclcpp::Node and agnocast::Node at runtime. The node wrapper automatically selects the correct underlying implementation based on the ENABLE_AGNOCAST environment variable.

Currently supported APIs:

  • Publisher / Subscription / PollingSubscriber
  • Parameters
  • Logger, Clock
  • Callback groups
  • Node interfaces (partial: get_node_base_interface(), get_node_topics_interface(), get_node_parameters_interface())

Note: Timer (create_wall_timer, create_timer) is not yet supported and will be added in a future update.

#include <autoware/agnocast_wrapper/node.hpp>

class MyNode : public autoware::agnocast_wrapper::Node
{
public:
  explicit MyNode(const rclcpp::NodeOptions & options)
  : Node("my_node", options)
  {
    pub_ = create_publisher<std_msgs::msg::String>("output", 10);
    sub_ = create_subscription<std_msgs::msg::String>(
      "input", 10, [this](std::unique_ptr<const std_msgs::msg::String> msg) { /* ... */ });
  }

private:
  autoware::agnocast_wrapper::Publisher<std_msgs::msg::String>::SharedPtr pub_;
  autoware::agnocast_wrapper::Subscription<std_msgs::msg::String>::SharedPtr sub_;
};

To use the Node wrapper in your package, add the following to your CMakeLists.txt:

find_package(autoware_agnocast_wrapper REQUIRED)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

Registering a Node with autoware_agnocast_wrapper_register_node

Instead of calling rclcpp_components_register_node directly, use the autoware_agnocast_wrapper_register_node macro to register your component node. This macro:

  1. Registers the component with rclcpp_components (for component container support)
  2. Creates a standalone executable that can switch between rclcpp::Node and agnocast::Node at runtime based on the ENABLE_AGNOCAST environment variable

When ENABLE_AGNOCAST is not set or set to 0, this macro falls back to standard rclcpp_components_register_node behavior.

find_package(autoware_agnocast_wrapper REQUIRED)

ament_auto_add_library(my_node_component SHARED src/my_node.cpp)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

autoware_agnocast_wrapper_register_node(my_node_component
  PLUGIN "my_package::MyNode"
  EXECUTABLE my_node
)

Parameters:

Parameter Required Default Description
PLUGIN Yes - Fully qualified class name of the component
EXECUTABLE Yes - Executable name for the node
ROS2_EXECUTOR No SingleThreadedExecutor Executor to use when ENABLE_AGNOCAST=0 at runtime
AGNOCAST_EXECUTOR No SingleThreadedAgnocastExecutor Executor to use when ENABLE_AGNOCAST=1 at runtime

Valid executor values:

  • ROS2_EXECUTOR: SingleThreadedExecutor, MultiThreadedExecutor
  • AGNOCAST_EXECUTOR: SingleThreadedAgnocastExecutor, MultiThreadedAgnocastExecutor, CallbackIsolatedAgnocastExecutor, AgnocastOnlySingleThreadedExecutor, AgnocastOnlyMultiThreadedExecutor, AgnocastOnlyCallbackIsolatedExecutor

Node class requirements:

The required PLUGIN base class depends on the AGNOCAST_EXECUTOR type. The generated template enforces this via if constexpr at compile time:

AGNOCAST_EXECUTOR Required PLUGIN base class
AgnocastOnly* executors autoware::agnocast_wrapper::Node
Other agnocast executors Any rclcpp::Node-compatible class

Non-AgnocastOnly executors use NodeInstanceWrapper::get_node_base_interface() directly, which works with any node type (rclcpp::Node, agnocast_wrapper::Node, etc.) without requiring a cast. AgnocastOnly executors require get_agnocast_node(), which is only available on autoware::agnocast_wrapper::Node.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_agnocast_wrapper

0.50.0 (2026-02-14)

  • Merge remote-tracking branch 'origin/main' into humble
  • fix(agnocast): build on jazzy, remove from ground_segmentation_cuda (#11960)
  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome

0.49.0 (2025-12-30)

0.48.0 (2025-11-18)

  • Merge remote-tracking branch 'origin/main' into humble

  • fix(agnocast_wrapper): fix const rvalue reference binding error in AgnocastPollingSubscriber (#11425) fix AgnocastPollingSubscriber in agnocast_wrapper

  • feat(autoware_agnocast_wrapper): support runtime fallback to ROS 2 behavior (#11060)

    • Create message_ptr
    • Create use_agnocast
    • Create Subscription
    • Create Publisher
    • Create PollingSubscriber (wip)
    • Allow copying message_ptr with shared ownership
    • style(pre-commit): autofix
    • Fix typo
    • fix
    • fix
    • style(pre-commit): autofix
    • fix for tidy
    • fix tidy
    • style(pre-commit): autofix
    • try avoiding cpplint error
    • fix
    • fix ament_lint_commont to autoware_lint_common

    * style(pre-commit): autofix ---------Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Koichi Imai <<koichi.imai.2@tier4.jp>> Co-authored-by: Koichi Imai <<45482193+Koichi98@users.noreply.github.com>> Co-authored-by: Takahiro Ishikawa-Aso <<sykwer@gmail.com>> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • Contributors: Guojun Wu, Koichi Imai, Ryohsuke Mitsudome

0.47.1 (2025-08-14)

0.47.0 (2025-08-11)

0.46.0 (2025-06-20)

0.45.0 (2025-05-22)

  • Merge remote-tracking branch 'origin/main' into tmp/notbot/bump_version_base
  • chore: re-introduce agnocast and fix version to v2.1.0 (#10526) delete colcon ignore and fix agnocast version to v2.1.0
  • Contributors: TaikiYamada4, Takahiro Ishikawa-Aso

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_agnocast_wrapper at Robotics Stack Exchange

No version for distro rolling showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_agnocast_wrapper package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_specs autoware_geography_utils autoware_global_parameter_loader autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_planning_test_manager autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 0.50.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-03-17
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Wrapper macros for Agnocast (true zero-copy communication library)

Maintainers

  • Takahiro Ishikawa-Aso
  • Koichi Imai
  • Atsushi Yano

Authors

No additional authors.

autoware_agnocast_wrapper

The purpose of this package is to integrate Agnocast, a zero-copy middleware, into each topic in Autoware with minimal side effects. Agnocast is a library designed to work alongside ROS 2, enabling true zero-copy publish/subscribe communication for all ROS 2 message types, including unsized message types.

This package provides macros that wrap functions for publish/subscribe operations and smart pointer types for handling ROS 2 messages. When Autoware is built using the default build command, Agnocast is not enabled. However, setting the environment variable ENABLE_AGNOCAST=1 enables Agnocast and results in a build that includes its integration. This design ensures backward compatibility for users who are unaware of Agnocast, minimizing disruption.

Two Integration Approaches

This package provides two approaches for integrating Agnocast. Both will coexist for the foreseeable future.

1. Node Wrapper (agnocast_wrapper::Node)

Use this when you want the entire node to transparently switch between rclcpp::Node and agnocast::Node at runtime. The node wrapper automatically selects the correct underlying implementation based on the ENABLE_AGNOCAST environment variable.

Currently supported APIs:

  • Publisher / Subscription / PollingSubscriber
  • Parameters
  • Logger, Clock
  • Callback groups
  • Node interfaces (partial: get_node_base_interface(), get_node_topics_interface(), get_node_parameters_interface())

Note: Timer (create_wall_timer, create_timer) is not yet supported and will be added in a future update.

#include <autoware/agnocast_wrapper/node.hpp>

class MyNode : public autoware::agnocast_wrapper::Node
{
public:
  explicit MyNode(const rclcpp::NodeOptions & options)
  : Node("my_node", options)
  {
    pub_ = create_publisher<std_msgs::msg::String>("output", 10);
    sub_ = create_subscription<std_msgs::msg::String>(
      "input", 10, [this](std::unique_ptr<const std_msgs::msg::String> msg) { /* ... */ });
  }

private:
  autoware::agnocast_wrapper::Publisher<std_msgs::msg::String>::SharedPtr pub_;
  autoware::agnocast_wrapper::Subscription<std_msgs::msg::String>::SharedPtr sub_;
};

To use the Node wrapper in your package, add the following to your CMakeLists.txt:

find_package(autoware_agnocast_wrapper REQUIRED)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

Registering a Node with autoware_agnocast_wrapper_register_node

Instead of calling rclcpp_components_register_node directly, use the autoware_agnocast_wrapper_register_node macro to register your component node. This macro:

  1. Registers the component with rclcpp_components (for component container support)
  2. Creates a standalone executable that can switch between rclcpp::Node and agnocast::Node at runtime based on the ENABLE_AGNOCAST environment variable

When ENABLE_AGNOCAST is not set or set to 0, this macro falls back to standard rclcpp_components_register_node behavior.

find_package(autoware_agnocast_wrapper REQUIRED)

ament_auto_add_library(my_node_component SHARED src/my_node.cpp)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

autoware_agnocast_wrapper_register_node(my_node_component
  PLUGIN "my_package::MyNode"
  EXECUTABLE my_node
)

Parameters:

Parameter Required Default Description
PLUGIN Yes - Fully qualified class name of the component
EXECUTABLE Yes - Executable name for the node
ROS2_EXECUTOR No SingleThreadedExecutor Executor to use when ENABLE_AGNOCAST=0 at runtime
AGNOCAST_EXECUTOR No SingleThreadedAgnocastExecutor Executor to use when ENABLE_AGNOCAST=1 at runtime

Valid executor values:

  • ROS2_EXECUTOR: SingleThreadedExecutor, MultiThreadedExecutor
  • AGNOCAST_EXECUTOR: SingleThreadedAgnocastExecutor, MultiThreadedAgnocastExecutor, CallbackIsolatedAgnocastExecutor, AgnocastOnlySingleThreadedExecutor, AgnocastOnlyMultiThreadedExecutor, AgnocastOnlyCallbackIsolatedExecutor

Node class requirements:

The required PLUGIN base class depends on the AGNOCAST_EXECUTOR type. The generated template enforces this via if constexpr at compile time:

AGNOCAST_EXECUTOR Required PLUGIN base class
AgnocastOnly* executors autoware::agnocast_wrapper::Node
Other agnocast executors Any rclcpp::Node-compatible class

Non-AgnocastOnly executors use NodeInstanceWrapper::get_node_base_interface() directly, which works with any node type (rclcpp::Node, agnocast_wrapper::Node, etc.) without requiring a cast. AgnocastOnly executors require get_agnocast_node(), which is only available on autoware::agnocast_wrapper::Node.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_agnocast_wrapper

0.50.0 (2026-02-14)

  • Merge remote-tracking branch 'origin/main' into humble
  • fix(agnocast): build on jazzy, remove from ground_segmentation_cuda (#11960)
  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome

0.49.0 (2025-12-30)

0.48.0 (2025-11-18)

  • Merge remote-tracking branch 'origin/main' into humble

  • fix(agnocast_wrapper): fix const rvalue reference binding error in AgnocastPollingSubscriber (#11425) fix AgnocastPollingSubscriber in agnocast_wrapper

  • feat(autoware_agnocast_wrapper): support runtime fallback to ROS 2 behavior (#11060)

    • Create message_ptr
    • Create use_agnocast
    • Create Subscription
    • Create Publisher
    • Create PollingSubscriber (wip)
    • Allow copying message_ptr with shared ownership
    • style(pre-commit): autofix
    • Fix typo
    • fix
    • fix
    • style(pre-commit): autofix
    • fix for tidy
    • fix tidy
    • style(pre-commit): autofix
    • try avoiding cpplint error
    • fix
    • fix ament_lint_commont to autoware_lint_common

    * style(pre-commit): autofix ---------Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Koichi Imai <<koichi.imai.2@tier4.jp>> Co-authored-by: Koichi Imai <<45482193+Koichi98@users.noreply.github.com>> Co-authored-by: Takahiro Ishikawa-Aso <<sykwer@gmail.com>> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • Contributors: Guojun Wu, Koichi Imai, Ryohsuke Mitsudome

0.47.1 (2025-08-14)

0.47.0 (2025-08-11)

0.46.0 (2025-06-20)

0.45.0 (2025-05-22)

  • Merge remote-tracking branch 'origin/main' into tmp/notbot/bump_version_base
  • chore: re-introduce agnocast and fix version to v2.1.0 (#10526) delete colcon ignore and fix agnocast version to v2.1.0
  • Contributors: TaikiYamada4, Takahiro Ishikawa-Aso

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_agnocast_wrapper at Robotics Stack Exchange

Package symbol

autoware_agnocast_wrapper package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_specs autoware_geography_utils autoware_global_parameter_loader autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_planning_test_manager autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
github

Package Summary

Version 0.50.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-03-17
Dev Status DEVELOPED
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Wrapper macros for Agnocast (true zero-copy communication library)

Maintainers

  • Takahiro Ishikawa-Aso
  • Koichi Imai
  • Atsushi Yano

Authors

No additional authors.

autoware_agnocast_wrapper

The purpose of this package is to integrate Agnocast, a zero-copy middleware, into each topic in Autoware with minimal side effects. Agnocast is a library designed to work alongside ROS 2, enabling true zero-copy publish/subscribe communication for all ROS 2 message types, including unsized message types.

This package provides macros that wrap functions for publish/subscribe operations and smart pointer types for handling ROS 2 messages. When Autoware is built using the default build command, Agnocast is not enabled. However, setting the environment variable ENABLE_AGNOCAST=1 enables Agnocast and results in a build that includes its integration. This design ensures backward compatibility for users who are unaware of Agnocast, minimizing disruption.

Two Integration Approaches

This package provides two approaches for integrating Agnocast. Both will coexist for the foreseeable future.

1. Node Wrapper (agnocast_wrapper::Node)

Use this when you want the entire node to transparently switch between rclcpp::Node and agnocast::Node at runtime. The node wrapper automatically selects the correct underlying implementation based on the ENABLE_AGNOCAST environment variable.

Currently supported APIs:

  • Publisher / Subscription / PollingSubscriber
  • Parameters
  • Logger, Clock
  • Callback groups
  • Node interfaces (partial: get_node_base_interface(), get_node_topics_interface(), get_node_parameters_interface())

Note: Timer (create_wall_timer, create_timer) is not yet supported and will be added in a future update.

#include <autoware/agnocast_wrapper/node.hpp>

class MyNode : public autoware::agnocast_wrapper::Node
{
public:
  explicit MyNode(const rclcpp::NodeOptions & options)
  : Node("my_node", options)
  {
    pub_ = create_publisher<std_msgs::msg::String>("output", 10);
    sub_ = create_subscription<std_msgs::msg::String>(
      "input", 10, [this](std::unique_ptr<const std_msgs::msg::String> msg) { /* ... */ });
  }

private:
  autoware::agnocast_wrapper::Publisher<std_msgs::msg::String>::SharedPtr pub_;
  autoware::agnocast_wrapper::Subscription<std_msgs::msg::String>::SharedPtr sub_;
};

To use the Node wrapper in your package, add the following to your CMakeLists.txt:

find_package(autoware_agnocast_wrapper REQUIRED)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

Registering a Node with autoware_agnocast_wrapper_register_node

Instead of calling rclcpp_components_register_node directly, use the autoware_agnocast_wrapper_register_node macro to register your component node. This macro:

  1. Registers the component with rclcpp_components (for component container support)
  2. Creates a standalone executable that can switch between rclcpp::Node and agnocast::Node at runtime based on the ENABLE_AGNOCAST environment variable

When ENABLE_AGNOCAST is not set or set to 0, this macro falls back to standard rclcpp_components_register_node behavior.

find_package(autoware_agnocast_wrapper REQUIRED)

ament_auto_add_library(my_node_component SHARED src/my_node.cpp)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

autoware_agnocast_wrapper_register_node(my_node_component
  PLUGIN "my_package::MyNode"
  EXECUTABLE my_node
)

Parameters:

Parameter Required Default Description
PLUGIN Yes - Fully qualified class name of the component
EXECUTABLE Yes - Executable name for the node
ROS2_EXECUTOR No SingleThreadedExecutor Executor to use when ENABLE_AGNOCAST=0 at runtime
AGNOCAST_EXECUTOR No SingleThreadedAgnocastExecutor Executor to use when ENABLE_AGNOCAST=1 at runtime

Valid executor values:

  • ROS2_EXECUTOR: SingleThreadedExecutor, MultiThreadedExecutor
  • AGNOCAST_EXECUTOR: SingleThreadedAgnocastExecutor, MultiThreadedAgnocastExecutor, CallbackIsolatedAgnocastExecutor, AgnocastOnlySingleThreadedExecutor, AgnocastOnlyMultiThreadedExecutor, AgnocastOnlyCallbackIsolatedExecutor

Node class requirements:

The required PLUGIN base class depends on the AGNOCAST_EXECUTOR type. The generated template enforces this via if constexpr at compile time:

AGNOCAST_EXECUTOR Required PLUGIN base class
AgnocastOnly* executors autoware::agnocast_wrapper::Node
Other agnocast executors Any rclcpp::Node-compatible class

Non-AgnocastOnly executors use NodeInstanceWrapper::get_node_base_interface() directly, which works with any node type (rclcpp::Node, agnocast_wrapper::Node, etc.) without requiring a cast. AgnocastOnly executors require get_agnocast_node(), which is only available on autoware::agnocast_wrapper::Node.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_agnocast_wrapper

0.50.0 (2026-02-14)

  • Merge remote-tracking branch 'origin/main' into humble
  • fix(agnocast): build on jazzy, remove from ground_segmentation_cuda (#11960)
  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome

0.49.0 (2025-12-30)

0.48.0 (2025-11-18)

  • Merge remote-tracking branch 'origin/main' into humble

  • fix(agnocast_wrapper): fix const rvalue reference binding error in AgnocastPollingSubscriber (#11425) fix AgnocastPollingSubscriber in agnocast_wrapper

  • feat(autoware_agnocast_wrapper): support runtime fallback to ROS 2 behavior (#11060)

    • Create message_ptr
    • Create use_agnocast
    • Create Subscription
    • Create Publisher
    • Create PollingSubscriber (wip)
    • Allow copying message_ptr with shared ownership
    • style(pre-commit): autofix
    • Fix typo
    • fix
    • fix
    • style(pre-commit): autofix
    • fix for tidy
    • fix tidy
    • style(pre-commit): autofix
    • try avoiding cpplint error
    • fix
    • fix ament_lint_commont to autoware_lint_common

    * style(pre-commit): autofix ---------Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Koichi Imai <<koichi.imai.2@tier4.jp>> Co-authored-by: Koichi Imai <<45482193+Koichi98@users.noreply.github.com>> Co-authored-by: Takahiro Ishikawa-Aso <<sykwer@gmail.com>> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • Contributors: Guojun Wu, Koichi Imai, Ryohsuke Mitsudome

0.47.1 (2025-08-14)

0.47.0 (2025-08-11)

0.46.0 (2025-06-20)

0.45.0 (2025-05-22)

  • Merge remote-tracking branch 'origin/main' into tmp/notbot/bump_version_base
  • chore: re-introduce agnocast and fix version to v2.1.0 (#10526) delete colcon ignore and fix agnocast version to v2.1.0
  • Contributors: TaikiYamada4, Takahiro Ishikawa-Aso

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_agnocast_wrapper at Robotics Stack Exchange

No version for distro galactic showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_agnocast_wrapper package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_specs autoware_geography_utils autoware_global_parameter_loader autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_planning_test_manager autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 0.50.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-03-17
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Wrapper macros for Agnocast (true zero-copy communication library)

Maintainers

  • Takahiro Ishikawa-Aso
  • Koichi Imai
  • Atsushi Yano

Authors

No additional authors.

autoware_agnocast_wrapper

The purpose of this package is to integrate Agnocast, a zero-copy middleware, into each topic in Autoware with minimal side effects. Agnocast is a library designed to work alongside ROS 2, enabling true zero-copy publish/subscribe communication for all ROS 2 message types, including unsized message types.

This package provides macros that wrap functions for publish/subscribe operations and smart pointer types for handling ROS 2 messages. When Autoware is built using the default build command, Agnocast is not enabled. However, setting the environment variable ENABLE_AGNOCAST=1 enables Agnocast and results in a build that includes its integration. This design ensures backward compatibility for users who are unaware of Agnocast, minimizing disruption.

Two Integration Approaches

This package provides two approaches for integrating Agnocast. Both will coexist for the foreseeable future.

1. Node Wrapper (agnocast_wrapper::Node)

Use this when you want the entire node to transparently switch between rclcpp::Node and agnocast::Node at runtime. The node wrapper automatically selects the correct underlying implementation based on the ENABLE_AGNOCAST environment variable.

Currently supported APIs:

  • Publisher / Subscription / PollingSubscriber
  • Parameters
  • Logger, Clock
  • Callback groups
  • Node interfaces (partial: get_node_base_interface(), get_node_topics_interface(), get_node_parameters_interface())

Note: Timer (create_wall_timer, create_timer) is not yet supported and will be added in a future update.

#include <autoware/agnocast_wrapper/node.hpp>

class MyNode : public autoware::agnocast_wrapper::Node
{
public:
  explicit MyNode(const rclcpp::NodeOptions & options)
  : Node("my_node", options)
  {
    pub_ = create_publisher<std_msgs::msg::String>("output", 10);
    sub_ = create_subscription<std_msgs::msg::String>(
      "input", 10, [this](std::unique_ptr<const std_msgs::msg::String> msg) { /* ... */ });
  }

private:
  autoware::agnocast_wrapper::Publisher<std_msgs::msg::String>::SharedPtr pub_;
  autoware::agnocast_wrapper::Subscription<std_msgs::msg::String>::SharedPtr sub_;
};

To use the Node wrapper in your package, add the following to your CMakeLists.txt:

find_package(autoware_agnocast_wrapper REQUIRED)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

Registering a Node with autoware_agnocast_wrapper_register_node

Instead of calling rclcpp_components_register_node directly, use the autoware_agnocast_wrapper_register_node macro to register your component node. This macro:

  1. Registers the component with rclcpp_components (for component container support)
  2. Creates a standalone executable that can switch between rclcpp::Node and agnocast::Node at runtime based on the ENABLE_AGNOCAST environment variable

When ENABLE_AGNOCAST is not set or set to 0, this macro falls back to standard rclcpp_components_register_node behavior.

find_package(autoware_agnocast_wrapper REQUIRED)

ament_auto_add_library(my_node_component SHARED src/my_node.cpp)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

autoware_agnocast_wrapper_register_node(my_node_component
  PLUGIN "my_package::MyNode"
  EXECUTABLE my_node
)

Parameters:

Parameter Required Default Description
PLUGIN Yes - Fully qualified class name of the component
EXECUTABLE Yes - Executable name for the node
ROS2_EXECUTOR No SingleThreadedExecutor Executor to use when ENABLE_AGNOCAST=0 at runtime
AGNOCAST_EXECUTOR No SingleThreadedAgnocastExecutor Executor to use when ENABLE_AGNOCAST=1 at runtime

Valid executor values:

  • ROS2_EXECUTOR: SingleThreadedExecutor, MultiThreadedExecutor
  • AGNOCAST_EXECUTOR: SingleThreadedAgnocastExecutor, MultiThreadedAgnocastExecutor, CallbackIsolatedAgnocastExecutor, AgnocastOnlySingleThreadedExecutor, AgnocastOnlyMultiThreadedExecutor, AgnocastOnlyCallbackIsolatedExecutor

Node class requirements:

The required PLUGIN base class depends on the AGNOCAST_EXECUTOR type. The generated template enforces this via if constexpr at compile time:

AGNOCAST_EXECUTOR Required PLUGIN base class
AgnocastOnly* executors autoware::agnocast_wrapper::Node
Other agnocast executors Any rclcpp::Node-compatible class

Non-AgnocastOnly executors use NodeInstanceWrapper::get_node_base_interface() directly, which works with any node type (rclcpp::Node, agnocast_wrapper::Node, etc.) without requiring a cast. AgnocastOnly executors require get_agnocast_node(), which is only available on autoware::agnocast_wrapper::Node.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_agnocast_wrapper

0.50.0 (2026-02-14)

  • Merge remote-tracking branch 'origin/main' into humble
  • fix(agnocast): build on jazzy, remove from ground_segmentation_cuda (#11960)
  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome

0.49.0 (2025-12-30)

0.48.0 (2025-11-18)

  • Merge remote-tracking branch 'origin/main' into humble

  • fix(agnocast_wrapper): fix const rvalue reference binding error in AgnocastPollingSubscriber (#11425) fix AgnocastPollingSubscriber in agnocast_wrapper

  • feat(autoware_agnocast_wrapper): support runtime fallback to ROS 2 behavior (#11060)

    • Create message_ptr
    • Create use_agnocast
    • Create Subscription
    • Create Publisher
    • Create PollingSubscriber (wip)
    • Allow copying message_ptr with shared ownership
    • style(pre-commit): autofix
    • Fix typo
    • fix
    • fix
    • style(pre-commit): autofix
    • fix for tidy
    • fix tidy
    • style(pre-commit): autofix
    • try avoiding cpplint error
    • fix
    • fix ament_lint_commont to autoware_lint_common

    * style(pre-commit): autofix ---------Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Koichi Imai <<koichi.imai.2@tier4.jp>> Co-authored-by: Koichi Imai <<45482193+Koichi98@users.noreply.github.com>> Co-authored-by: Takahiro Ishikawa-Aso <<sykwer@gmail.com>> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • Contributors: Guojun Wu, Koichi Imai, Ryohsuke Mitsudome

0.47.1 (2025-08-14)

0.47.0 (2025-08-11)

0.46.0 (2025-06-20)

0.45.0 (2025-05-22)

  • Merge remote-tracking branch 'origin/main' into tmp/notbot/bump_version_base
  • chore: re-introduce agnocast and fix version to v2.1.0 (#10526) delete colcon ignore and fix agnocast version to v2.1.0
  • Contributors: TaikiYamada4, Takahiro Ishikawa-Aso

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_agnocast_wrapper at Robotics Stack Exchange

No version for distro iron showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_agnocast_wrapper package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_specs autoware_geography_utils autoware_global_parameter_loader autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_planning_test_manager autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 0.50.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-03-17
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Wrapper macros for Agnocast (true zero-copy communication library)

Maintainers

  • Takahiro Ishikawa-Aso
  • Koichi Imai
  • Atsushi Yano

Authors

No additional authors.

autoware_agnocast_wrapper

The purpose of this package is to integrate Agnocast, a zero-copy middleware, into each topic in Autoware with minimal side effects. Agnocast is a library designed to work alongside ROS 2, enabling true zero-copy publish/subscribe communication for all ROS 2 message types, including unsized message types.

This package provides macros that wrap functions for publish/subscribe operations and smart pointer types for handling ROS 2 messages. When Autoware is built using the default build command, Agnocast is not enabled. However, setting the environment variable ENABLE_AGNOCAST=1 enables Agnocast and results in a build that includes its integration. This design ensures backward compatibility for users who are unaware of Agnocast, minimizing disruption.

Two Integration Approaches

This package provides two approaches for integrating Agnocast. Both will coexist for the foreseeable future.

1. Node Wrapper (agnocast_wrapper::Node)

Use this when you want the entire node to transparently switch between rclcpp::Node and agnocast::Node at runtime. The node wrapper automatically selects the correct underlying implementation based on the ENABLE_AGNOCAST environment variable.

Currently supported APIs:

  • Publisher / Subscription / PollingSubscriber
  • Parameters
  • Logger, Clock
  • Callback groups
  • Node interfaces (partial: get_node_base_interface(), get_node_topics_interface(), get_node_parameters_interface())

Note: Timer (create_wall_timer, create_timer) is not yet supported and will be added in a future update.

#include <autoware/agnocast_wrapper/node.hpp>

class MyNode : public autoware::agnocast_wrapper::Node
{
public:
  explicit MyNode(const rclcpp::NodeOptions & options)
  : Node("my_node", options)
  {
    pub_ = create_publisher<std_msgs::msg::String>("output", 10);
    sub_ = create_subscription<std_msgs::msg::String>(
      "input", 10, [this](std::unique_ptr<const std_msgs::msg::String> msg) { /* ... */ });
  }

private:
  autoware::agnocast_wrapper::Publisher<std_msgs::msg::String>::SharedPtr pub_;
  autoware::agnocast_wrapper::Subscription<std_msgs::msg::String>::SharedPtr sub_;
};

To use the Node wrapper in your package, add the following to your CMakeLists.txt:

find_package(autoware_agnocast_wrapper REQUIRED)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

Registering a Node with autoware_agnocast_wrapper_register_node

Instead of calling rclcpp_components_register_node directly, use the autoware_agnocast_wrapper_register_node macro to register your component node. This macro:

  1. Registers the component with rclcpp_components (for component container support)
  2. Creates a standalone executable that can switch between rclcpp::Node and agnocast::Node at runtime based on the ENABLE_AGNOCAST environment variable

When ENABLE_AGNOCAST is not set or set to 0, this macro falls back to standard rclcpp_components_register_node behavior.

find_package(autoware_agnocast_wrapper REQUIRED)

ament_auto_add_library(my_node_component SHARED src/my_node.cpp)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

autoware_agnocast_wrapper_register_node(my_node_component
  PLUGIN "my_package::MyNode"
  EXECUTABLE my_node
)

Parameters:

Parameter Required Default Description
PLUGIN Yes - Fully qualified class name of the component
EXECUTABLE Yes - Executable name for the node
ROS2_EXECUTOR No SingleThreadedExecutor Executor to use when ENABLE_AGNOCAST=0 at runtime
AGNOCAST_EXECUTOR No SingleThreadedAgnocastExecutor Executor to use when ENABLE_AGNOCAST=1 at runtime

Valid executor values:

  • ROS2_EXECUTOR: SingleThreadedExecutor, MultiThreadedExecutor
  • AGNOCAST_EXECUTOR: SingleThreadedAgnocastExecutor, MultiThreadedAgnocastExecutor, CallbackIsolatedAgnocastExecutor, AgnocastOnlySingleThreadedExecutor, AgnocastOnlyMultiThreadedExecutor, AgnocastOnlyCallbackIsolatedExecutor

Node class requirements:

The required PLUGIN base class depends on the AGNOCAST_EXECUTOR type. The generated template enforces this via if constexpr at compile time:

AGNOCAST_EXECUTOR Required PLUGIN base class
AgnocastOnly* executors autoware::agnocast_wrapper::Node
Other agnocast executors Any rclcpp::Node-compatible class

Non-AgnocastOnly executors use NodeInstanceWrapper::get_node_base_interface() directly, which works with any node type (rclcpp::Node, agnocast_wrapper::Node, etc.) without requiring a cast. AgnocastOnly executors require get_agnocast_node(), which is only available on autoware::agnocast_wrapper::Node.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_agnocast_wrapper

0.50.0 (2026-02-14)

  • Merge remote-tracking branch 'origin/main' into humble
  • fix(agnocast): build on jazzy, remove from ground_segmentation_cuda (#11960)
  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome

0.49.0 (2025-12-30)

0.48.0 (2025-11-18)

  • Merge remote-tracking branch 'origin/main' into humble

  • fix(agnocast_wrapper): fix const rvalue reference binding error in AgnocastPollingSubscriber (#11425) fix AgnocastPollingSubscriber in agnocast_wrapper

  • feat(autoware_agnocast_wrapper): support runtime fallback to ROS 2 behavior (#11060)

    • Create message_ptr
    • Create use_agnocast
    • Create Subscription
    • Create Publisher
    • Create PollingSubscriber (wip)
    • Allow copying message_ptr with shared ownership
    • style(pre-commit): autofix
    • Fix typo
    • fix
    • fix
    • style(pre-commit): autofix
    • fix for tidy
    • fix tidy
    • style(pre-commit): autofix
    • try avoiding cpplint error
    • fix
    • fix ament_lint_commont to autoware_lint_common

    * style(pre-commit): autofix ---------Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Koichi Imai <<koichi.imai.2@tier4.jp>> Co-authored-by: Koichi Imai <<45482193+Koichi98@users.noreply.github.com>> Co-authored-by: Takahiro Ishikawa-Aso <<sykwer@gmail.com>> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • Contributors: Guojun Wu, Koichi Imai, Ryohsuke Mitsudome

0.47.1 (2025-08-14)

0.47.0 (2025-08-11)

0.46.0 (2025-06-20)

0.45.0 (2025-05-22)

  • Merge remote-tracking branch 'origin/main' into tmp/notbot/bump_version_base
  • chore: re-introduce agnocast and fix version to v2.1.0 (#10526) delete colcon ignore and fix agnocast version to v2.1.0
  • Contributors: TaikiYamada4, Takahiro Ishikawa-Aso

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_agnocast_wrapper at Robotics Stack Exchange

No version for distro melodic showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_agnocast_wrapper package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_specs autoware_geography_utils autoware_global_parameter_loader autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_planning_test_manager autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 0.50.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-03-17
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Wrapper macros for Agnocast (true zero-copy communication library)

Maintainers

  • Takahiro Ishikawa-Aso
  • Koichi Imai
  • Atsushi Yano

Authors

No additional authors.

autoware_agnocast_wrapper

The purpose of this package is to integrate Agnocast, a zero-copy middleware, into each topic in Autoware with minimal side effects. Agnocast is a library designed to work alongside ROS 2, enabling true zero-copy publish/subscribe communication for all ROS 2 message types, including unsized message types.

This package provides macros that wrap functions for publish/subscribe operations and smart pointer types for handling ROS 2 messages. When Autoware is built using the default build command, Agnocast is not enabled. However, setting the environment variable ENABLE_AGNOCAST=1 enables Agnocast and results in a build that includes its integration. This design ensures backward compatibility for users who are unaware of Agnocast, minimizing disruption.

Two Integration Approaches

This package provides two approaches for integrating Agnocast. Both will coexist for the foreseeable future.

1. Node Wrapper (agnocast_wrapper::Node)

Use this when you want the entire node to transparently switch between rclcpp::Node and agnocast::Node at runtime. The node wrapper automatically selects the correct underlying implementation based on the ENABLE_AGNOCAST environment variable.

Currently supported APIs:

  • Publisher / Subscription / PollingSubscriber
  • Parameters
  • Logger, Clock
  • Callback groups
  • Node interfaces (partial: get_node_base_interface(), get_node_topics_interface(), get_node_parameters_interface())

Note: Timer (create_wall_timer, create_timer) is not yet supported and will be added in a future update.

#include <autoware/agnocast_wrapper/node.hpp>

class MyNode : public autoware::agnocast_wrapper::Node
{
public:
  explicit MyNode(const rclcpp::NodeOptions & options)
  : Node("my_node", options)
  {
    pub_ = create_publisher<std_msgs::msg::String>("output", 10);
    sub_ = create_subscription<std_msgs::msg::String>(
      "input", 10, [this](std::unique_ptr<const std_msgs::msg::String> msg) { /* ... */ });
  }

private:
  autoware::agnocast_wrapper::Publisher<std_msgs::msg::String>::SharedPtr pub_;
  autoware::agnocast_wrapper::Subscription<std_msgs::msg::String>::SharedPtr sub_;
};

To use the Node wrapper in your package, add the following to your CMakeLists.txt:

find_package(autoware_agnocast_wrapper REQUIRED)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

Registering a Node with autoware_agnocast_wrapper_register_node

Instead of calling rclcpp_components_register_node directly, use the autoware_agnocast_wrapper_register_node macro to register your component node. This macro:

  1. Registers the component with rclcpp_components (for component container support)
  2. Creates a standalone executable that can switch between rclcpp::Node and agnocast::Node at runtime based on the ENABLE_AGNOCAST environment variable

When ENABLE_AGNOCAST is not set or set to 0, this macro falls back to standard rclcpp_components_register_node behavior.

find_package(autoware_agnocast_wrapper REQUIRED)

ament_auto_add_library(my_node_component SHARED src/my_node.cpp)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

autoware_agnocast_wrapper_register_node(my_node_component
  PLUGIN "my_package::MyNode"
  EXECUTABLE my_node
)

Parameters:

Parameter Required Default Description
PLUGIN Yes - Fully qualified class name of the component
EXECUTABLE Yes - Executable name for the node
ROS2_EXECUTOR No SingleThreadedExecutor Executor to use when ENABLE_AGNOCAST=0 at runtime
AGNOCAST_EXECUTOR No SingleThreadedAgnocastExecutor Executor to use when ENABLE_AGNOCAST=1 at runtime

Valid executor values:

  • ROS2_EXECUTOR: SingleThreadedExecutor, MultiThreadedExecutor
  • AGNOCAST_EXECUTOR: SingleThreadedAgnocastExecutor, MultiThreadedAgnocastExecutor, CallbackIsolatedAgnocastExecutor, AgnocastOnlySingleThreadedExecutor, AgnocastOnlyMultiThreadedExecutor, AgnocastOnlyCallbackIsolatedExecutor

Node class requirements:

The required PLUGIN base class depends on the AGNOCAST_EXECUTOR type. The generated template enforces this via if constexpr at compile time:

AGNOCAST_EXECUTOR Required PLUGIN base class
AgnocastOnly* executors autoware::agnocast_wrapper::Node
Other agnocast executors Any rclcpp::Node-compatible class

Non-AgnocastOnly executors use NodeInstanceWrapper::get_node_base_interface() directly, which works with any node type (rclcpp::Node, agnocast_wrapper::Node, etc.) without requiring a cast. AgnocastOnly executors require get_agnocast_node(), which is only available on autoware::agnocast_wrapper::Node.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_agnocast_wrapper

0.50.0 (2026-02-14)

  • Merge remote-tracking branch 'origin/main' into humble
  • fix(agnocast): build on jazzy, remove from ground_segmentation_cuda (#11960)
  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome

0.49.0 (2025-12-30)

0.48.0 (2025-11-18)

  • Merge remote-tracking branch 'origin/main' into humble

  • fix(agnocast_wrapper): fix const rvalue reference binding error in AgnocastPollingSubscriber (#11425) fix AgnocastPollingSubscriber in agnocast_wrapper

  • feat(autoware_agnocast_wrapper): support runtime fallback to ROS 2 behavior (#11060)

    • Create message_ptr
    • Create use_agnocast
    • Create Subscription
    • Create Publisher
    • Create PollingSubscriber (wip)
    • Allow copying message_ptr with shared ownership
    • style(pre-commit): autofix
    • Fix typo
    • fix
    • fix
    • style(pre-commit): autofix
    • fix for tidy
    • fix tidy
    • style(pre-commit): autofix
    • try avoiding cpplint error
    • fix
    • fix ament_lint_commont to autoware_lint_common

    * style(pre-commit): autofix ---------Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Koichi Imai <<koichi.imai.2@tier4.jp>> Co-authored-by: Koichi Imai <<45482193+Koichi98@users.noreply.github.com>> Co-authored-by: Takahiro Ishikawa-Aso <<sykwer@gmail.com>> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • Contributors: Guojun Wu, Koichi Imai, Ryohsuke Mitsudome

0.47.1 (2025-08-14)

0.47.0 (2025-08-11)

0.46.0 (2025-06-20)

0.45.0 (2025-05-22)

  • Merge remote-tracking branch 'origin/main' into tmp/notbot/bump_version_base
  • chore: re-introduce agnocast and fix version to v2.1.0 (#10526) delete colcon ignore and fix agnocast version to v2.1.0
  • Contributors: TaikiYamada4, Takahiro Ishikawa-Aso

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_agnocast_wrapper at Robotics Stack Exchange

No version for distro noetic showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_agnocast_wrapper package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_specs autoware_geography_utils autoware_global_parameter_loader autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_planning_test_manager autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 0.50.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-03-17
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Wrapper macros for Agnocast (true zero-copy communication library)

Maintainers

  • Takahiro Ishikawa-Aso
  • Koichi Imai
  • Atsushi Yano

Authors

No additional authors.

autoware_agnocast_wrapper

The purpose of this package is to integrate Agnocast, a zero-copy middleware, into each topic in Autoware with minimal side effects. Agnocast is a library designed to work alongside ROS 2, enabling true zero-copy publish/subscribe communication for all ROS 2 message types, including unsized message types.

This package provides macros that wrap functions for publish/subscribe operations and smart pointer types for handling ROS 2 messages. When Autoware is built using the default build command, Agnocast is not enabled. However, setting the environment variable ENABLE_AGNOCAST=1 enables Agnocast and results in a build that includes its integration. This design ensures backward compatibility for users who are unaware of Agnocast, minimizing disruption.

Two Integration Approaches

This package provides two approaches for integrating Agnocast. Both will coexist for the foreseeable future.

1. Node Wrapper (agnocast_wrapper::Node)

Use this when you want the entire node to transparently switch between rclcpp::Node and agnocast::Node at runtime. The node wrapper automatically selects the correct underlying implementation based on the ENABLE_AGNOCAST environment variable.

Currently supported APIs:

  • Publisher / Subscription / PollingSubscriber
  • Parameters
  • Logger, Clock
  • Callback groups
  • Node interfaces (partial: get_node_base_interface(), get_node_topics_interface(), get_node_parameters_interface())

Note: Timer (create_wall_timer, create_timer) is not yet supported and will be added in a future update.

#include <autoware/agnocast_wrapper/node.hpp>

class MyNode : public autoware::agnocast_wrapper::Node
{
public:
  explicit MyNode(const rclcpp::NodeOptions & options)
  : Node("my_node", options)
  {
    pub_ = create_publisher<std_msgs::msg::String>("output", 10);
    sub_ = create_subscription<std_msgs::msg::String>(
      "input", 10, [this](std::unique_ptr<const std_msgs::msg::String> msg) { /* ... */ });
  }

private:
  autoware::agnocast_wrapper::Publisher<std_msgs::msg::String>::SharedPtr pub_;
  autoware::agnocast_wrapper::Subscription<std_msgs::msg::String>::SharedPtr sub_;
};

To use the Node wrapper in your package, add the following to your CMakeLists.txt:

find_package(autoware_agnocast_wrapper REQUIRED)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

Registering a Node with autoware_agnocast_wrapper_register_node

Instead of calling rclcpp_components_register_node directly, use the autoware_agnocast_wrapper_register_node macro to register your component node. This macro:

  1. Registers the component with rclcpp_components (for component container support)
  2. Creates a standalone executable that can switch between rclcpp::Node and agnocast::Node at runtime based on the ENABLE_AGNOCAST environment variable

When ENABLE_AGNOCAST is not set or set to 0, this macro falls back to standard rclcpp_components_register_node behavior.

find_package(autoware_agnocast_wrapper REQUIRED)

ament_auto_add_library(my_node_component SHARED src/my_node.cpp)
ament_target_dependencies(my_node_component autoware_agnocast_wrapper)

autoware_agnocast_wrapper_register_node(my_node_component
  PLUGIN "my_package::MyNode"
  EXECUTABLE my_node
)

Parameters:

Parameter Required Default Description
PLUGIN Yes - Fully qualified class name of the component
EXECUTABLE Yes - Executable name for the node
ROS2_EXECUTOR No SingleThreadedExecutor Executor to use when ENABLE_AGNOCAST=0 at runtime
AGNOCAST_EXECUTOR No SingleThreadedAgnocastExecutor Executor to use when ENABLE_AGNOCAST=1 at runtime

Valid executor values:

  • ROS2_EXECUTOR: SingleThreadedExecutor, MultiThreadedExecutor
  • AGNOCAST_EXECUTOR: SingleThreadedAgnocastExecutor, MultiThreadedAgnocastExecutor, CallbackIsolatedAgnocastExecutor, AgnocastOnlySingleThreadedExecutor, AgnocastOnlyMultiThreadedExecutor, AgnocastOnlyCallbackIsolatedExecutor

Node class requirements:

The required PLUGIN base class depends on the AGNOCAST_EXECUTOR type. The generated template enforces this via if constexpr at compile time:

AGNOCAST_EXECUTOR Required PLUGIN base class
AgnocastOnly* executors autoware::agnocast_wrapper::Node
Other agnocast executors Any rclcpp::Node-compatible class

Non-AgnocastOnly executors use NodeInstanceWrapper::get_node_base_interface() directly, which works with any node type (rclcpp::Node, agnocast_wrapper::Node, etc.) without requiring a cast. AgnocastOnly executors require get_agnocast_node(), which is only available on autoware::agnocast_wrapper::Node.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_agnocast_wrapper

0.50.0 (2026-02-14)

  • Merge remote-tracking branch 'origin/main' into humble
  • fix(agnocast): build on jazzy, remove from ground_segmentation_cuda (#11960)
  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome

0.49.0 (2025-12-30)

0.48.0 (2025-11-18)

  • Merge remote-tracking branch 'origin/main' into humble

  • fix(agnocast_wrapper): fix const rvalue reference binding error in AgnocastPollingSubscriber (#11425) fix AgnocastPollingSubscriber in agnocast_wrapper

  • feat(autoware_agnocast_wrapper): support runtime fallback to ROS 2 behavior (#11060)

    • Create message_ptr
    • Create use_agnocast
    • Create Subscription
    • Create Publisher
    • Create PollingSubscriber (wip)
    • Allow copying message_ptr with shared ownership
    • style(pre-commit): autofix
    • Fix typo
    • fix
    • fix
    • style(pre-commit): autofix
    • fix for tidy
    • fix tidy
    • style(pre-commit): autofix
    • try avoiding cpplint error
    • fix
    • fix ament_lint_commont to autoware_lint_common

    * style(pre-commit): autofix ---------Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Koichi Imai <<koichi.imai.2@tier4.jp>> Co-authored-by: Koichi Imai <<45482193+Koichi98@users.noreply.github.com>> Co-authored-by: Takahiro Ishikawa-Aso <<sykwer@gmail.com>> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • Contributors: Guojun Wu, Koichi Imai, Ryohsuke Mitsudome

0.47.1 (2025-08-14)

0.47.0 (2025-08-11)

0.46.0 (2025-06-20)

0.45.0 (2025-05-22)

  • Merge remote-tracking branch 'origin/main' into tmp/notbot/bump_version_base
  • chore: re-introduce agnocast and fix version to v2.1.0 (#10526) delete colcon ignore and fix agnocast version to v2.1.0
  • Contributors: TaikiYamada4, Takahiro Ishikawa-Aso

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_agnocast_wrapper at Robotics Stack Exchange