Class CAMRenderObject

Class Documentation

class CAMRenderObject

Public Functions

CAMRenderObject(etsi_its_cam_msgs::msg::CAM cam, rclcpp::Time receive_time, uint16_t n_leap_seconds = etsi_its_msgs::LEAP_SECOND_INSERTIONS_SINCE_2004.rbegin()->second)
bool validateFloats()

This function validates all float variables that are part of a CAMRenderObject.

double getAge(rclcpp::Time now)

Get age of CAM-object.

Parameters:

now – reference point in time to calculate the age with

Returns:

age in seconds as double value

std_msgs::msg::Header getHeader()

Get header of CAM-object.

Returns:

std_msgs::msg::Header

uint32_t getStationID()

Get the StationID of CAM-object.

Returns:

int

int getStationType()

Get the StationType of CAM-object.

Returns:

int

geometry_msgs::msg::Pose getPose()

Get pose of CAM-object.

Returns:

geometry_msgs::msg::Pose

geometry_msgs::msg::Vector3 getDimensions()

Get dimensions of CAM-Object.

Returns:

geometry_msgs::msg::Vector3 (x equals length, y equals width, z equals height)

double getSpeed()

Get speed of CAM-object.

Returns:

double