3#include "custom_interfaces/msg/vehicle_state_vector.hpp"
4#include "geometry_msgs/msg/twist_with_covariance_stamped.hpp"
5#include "pacsim/msg/stamped_scalar.hpp"
6#include "pacsim/msg/wheels.hpp"
8#include "std_srvs/srv/empty.hpp"
9#include "tf2_ros/buffer.h"
10#include "tf2_ros/transform_listener.h"
23 rclcpp::Subscription<geometry_msgs::msg::TwistWithCovarianceStamped>::SharedPtr
car_velocity_sub_;
24 rclcpp::Subscription<geometry_msgs::msg::TwistWithCovarianceStamped>::SharedPtr
car_pose_sub_;
Class responsible for the ROS2 communication of the control module.
Adapter for the PacSim simulator.
void publish_command(common_lib::structures::ControlCommand cmd) override
Adapters override this function to publish control commands in their environment.
rclcpp::Subscription< custom_interfaces::msg::VehicleStateVector >::SharedPtr car_state_vector_sub_
rclcpp::Publisher< pacsim::msg::Wheels >::SharedPtr throttle_pub_
rclcpp::Subscription< geometry_msgs::msg::TwistWithCovarianceStamped >::SharedPtr car_pose_sub_
rclcpp::Subscription< geometry_msgs::msg::TwistWithCovarianceStamped >::SharedPtr car_velocity_sub_
rclcpp::Publisher< pacsim::msg::StampedScalar >::SharedPtr steering_pub_
void _pacsim_gt_velocities_callback(const geometry_msgs::msg::TwistWithCovarianceStamped &msg)
Callback for the pacsim ground truth velocity topic, used when using simulated velocity estimation.
void _pacsim_gt_pose_callback(const geometry_msgs::msg::TwistWithCovarianceStamped &msg)
Callback for the pacsim ground truth pose topic, used when using simulated SLAM.
void _pacsim_gt_state_vector_callback(const custom_interfaces::msg::VehicleStateVector &msg)
Callback for the pacsim ground truth state vector topic, used when using simulated full state estimat...
friend class PacSimAdapter