Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
interfaces.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "rclcpp/rclcpp.hpp"
6#include "custom_interfaces/msg/cone.hpp"
7#include "custom_interfaces/msg/cone_array.hpp"
8#include "custom_interfaces/msg/path_point.hpp"
9#include "custom_interfaces/msg/path_point_array.hpp"
10#include "custom_interfaces/msg/point2d.hpp"
11
13
20std::vector<common_lib::structures::PathPoint> path_point_array_from_ci_vector(
21 const custom_interfaces::msg::PathPointArray &path_point_array);
22
23custom_interfaces::msg::ConeArray custom_interfaces_array_from_vector(
24 const std::vector<common_lib::structures::Cone> &input_cones);
25
26custom_interfaces::msg::PathPointArray custom_interfaces_array_from_vector(
27 const std::vector<common_lib::structures::PathPoint> &input_path, bool is_map_closed);
28
29std::vector<common_lib::structures::Cone> cone_vector_from_custom_interfaces(
30 const custom_interfaces::msg::ConeArray &msg);
31
32
33} // namespace common_lib::communication
std::vector< common_lib::structures::PathPoint > path_point_array_from_ci_vector(const custom_interfaces::msg::PathPointArray &path_point_array)
Convert from custom interfaces PathPointArray to vector of common_lib PathPoints.
Definition interfaces.cpp:5
custom_interfaces::msg::ConeArray custom_interfaces_array_from_vector(const std::vector< common_lib::structures::Cone > &input_cones)
std::vector< common_lib::structures::Cone > cone_vector_from_custom_interfaces(const custom_interfaces::msg::ConeArray &msg)