CARLA
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
CdrSerialization.h File Reference
#include <fastcdr/Cdr.h>
#include <fastcdr/FastBuffer.h>
#include <fastcdr/exceptions/BadParamException.h>
#include <fastcdr/exceptions/Exception.h>
#include <cstdint>
#include <vector>
#include "carla/ros2/types/msg/AckermannDrive.h"
#include "carla/ros2/types/msg/AckermannDriveStamped.h"
#include "carla/ros2/types/msg/CameraInfo.h"
#include "carla/ros2/types/msg/CarlaCollisionEvent.h"
#include "carla/ros2/types/msg/CarlaEgoVehicleControl.h"
#include "carla/ros2/types/msg/CarlaLineInvasion.h"
#include "carla/ros2/types/msg/Clock.h"
#include "carla/ros2/types/msg/Control.h"
#include "carla/ros2/types/msg/ControlModeReport.h"
#include "carla/ros2/types/msg/Engage.h"
#include "carla/ros2/types/msg/Float32.h"
#include "carla/ros2/types/msg/GearCommand.h"
#include "carla/ros2/types/msg/GearReport.h"
#include "carla/ros2/types/msg/HazardLightsCommand.h"
#include "carla/ros2/types/msg/HazardLightsReport.h"
#include "carla/ros2/types/msg/Header.h"
#include "carla/ros2/types/msg/Image.h"
#include "carla/ros2/types/msg/Imu.h"
#include "carla/ros2/types/msg/Lateral.h"
#include "carla/ros2/types/msg/Longitudinal.h"
#include "carla/ros2/types/msg/NavSatFix.h"
#include "carla/ros2/types/msg/NavSatStatus.h"
#include "carla/ros2/types/msg/Odometry.h"
#include "carla/ros2/types/msg/Point.h"
#include "carla/ros2/types/msg/Point32.h"
#include "carla/ros2/types/msg/PointCloud2.h"
#include "carla/ros2/types/msg/PointField.h"
#include "carla/ros2/types/msg/Pose.h"
#include "carla/ros2/types/msg/PoseStamped.h"
#include "carla/ros2/types/msg/PoseWithCovariance.h"
#include "carla/ros2/types/msg/PoseWithCovarianceStamped.h"
#include "carla/ros2/types/msg/Quaternion.h"
#include "carla/ros2/types/msg/RegionOfInterest.h"
#include "carla/ros2/types/msg/SteeringReport.h"
#include "carla/ros2/types/msg/String.h"
#include "carla/ros2/types/msg/TF2Error.h"
#include "carla/ros2/types/msg/TFMessage.h"
#include "carla/ros2/types/msg/Time.h"
#include "carla/ros2/types/msg/Transform.h"
#include "carla/ros2/types/msg/TransformStamped.h"
#include "carla/ros2/types/msg/TurnIndicatorsCommand.h"
#include "carla/ros2/types/msg/TurnIndicatorsReport.h"
#include "carla/ros2/types/msg/Twist.h"
#include "carla/ros2/types/msg/TwistWithCovariance.h"
#include "carla/ros2/types/msg/Vector3.h"
#include "carla/ros2/types/msg/VehicleEmergencyStamped.h"
#include "carla/ros2/types/msg/VelocityReport.h"

Go to the source code of this file.

Namespaces

namespace  carla
 This file contains definitions of common data structures used in traffic manager.
 
namespace  carla::ros2
 

Functions

template<typename T >
uint32_t carla::ros2::cdr_serialized_size (const T &msg)
 Return the exact CDR-serialized size in bytes for a message instance, including the 4-byte DDS encapsulation header.
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::AckermannDrive &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::AckermannDriveStamped &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::CameraInfo &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::CarlaCollisionEvent &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::CarlaEgoVehicleControl &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::CarlaLineInvasion &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Clock &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Control &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::ControlModeReport &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Engage &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Float32 &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::GearCommand &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::GearReport &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::HazardLightsCommand &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::HazardLightsReport &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Header &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Image &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Imu &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Lateral &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Longitudinal &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::NavSatFix &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::NavSatStatus &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Odometry &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Point &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Point32 &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::PointCloud2 &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::PointField &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Pose &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::PoseStamped &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::PoseWithCovariance &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::PoseWithCovarianceStamped &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Quaternion &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::RegionOfInterest &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::SteeringReport &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::String &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::TF2Error &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::TFMessage &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Time &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Transform &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::TransformStamped &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::TurnIndicatorsCommand &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::TurnIndicatorsReport &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Twist &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::TwistWithCovariance &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::Vector3 &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::VehicleEmergencyStamped &m)
 
void carla::ros2::deserialize_cdr (eprosima::fastcdr::Cdr &cdr, msg::VelocityReport &m)
 
template<typename T >
bool carla::ros2::deserialize_from_cdr (const uint8_t *data, size_t size, T &msg)
 Deserialize a msg::X from a CDR byte buffer that was produced by serialize_to_cdr() or by any ROS2-compatible DDS middleware.
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::AckermannDrive &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::AckermannDriveStamped &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::CameraInfo &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::CarlaCollisionEvent &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::CarlaEgoVehicleControl &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::CarlaLineInvasion &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Clock &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Control &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::ControlModeReport &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Engage &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Float32 &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::GearCommand &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::GearReport &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::HazardLightsCommand &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::HazardLightsReport &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Header &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Image &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Imu &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Lateral &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Longitudinal &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::NavSatFix &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::NavSatStatus &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Odometry &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Point &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Point32 &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::PointCloud2 &m)
 PointCloud2::fields is a sequence of structs; FastCDR's generic vector operator calls serialize() on each element, which our POD types don't provide.
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::PointField &m)
 PointField: name is a string; offset, datatype, count are primitives.
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Pose &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::PoseStamped &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::PoseWithCovariance &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::PoseWithCovarianceStamped &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Quaternion &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::RegionOfInterest &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::SteeringReport &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::String &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::TF2Error &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::TFMessage &m)
 TFMessage::transforms is a sequence of TransformStamped structs.
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Time &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Transform &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::TransformStamped &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::TurnIndicatorsCommand &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::TurnIndicatorsReport &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Twist &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::TwistWithCovariance &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::Vector3 &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::VehicleEmergencyStamped &m)
 
void carla::ros2::serialize_cdr (eprosima::fastcdr::Cdr &cdr, const msg::VelocityReport &m)
 
template<typename T >
std::vector< uint8_t > carla::ros2::serialize_to_cdr (const T &msg)
 Serialize a msg::X to a CDR byte buffer including the DDS encapsulation header (Classic CDR, encoding version 1, little-endian).
 

Variables

static constexpr uint32_t carla::ros2::kMaxCdrSequenceElements = 1u << 20
 Sanity cap for the length field of a CDR sequence read from the wire.