CARLA
Loading...
Searching...
No Matches
ActorROS2Handler.h
Go to the documentation of this file.
1// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
10#include "carla/ros2/ROS2.h"
12
13/// visitor class
15{
16 public:
17 ActorROS2Handler() = delete;
18 ActorROS2Handler(AActor *Actor, std::string RosName) : _Actor(Actor), _RosName(RosName) {};
19
24
25 /// Flatten the vehicle's steering curve to 1.0 at all speeds so the
26 /// Autoware steering command maps 1:1 to wheel angle (tier4 port).
27 static bool FlattenSteeringCurve(AActor *Actor);
28
29 private:
30 AActor *_Actor {nullptr};
31 std::string _RosName;
32};
void operator()(carla::ros2::VehicleControl &Source)
static bool FlattenSteeringCurve(AActor *Actor)
Flatten the vehicle's steering curve to 1.0 at all speeds so the Autoware steering command maps 1:1 t...
ActorROS2Handler()=delete
ActorROS2Handler(AActor *Actor, std::string RosName)
Control decoded from Autoware's /control/command/control_cmd: longitudinal acceleration [m/s^2] + ste...