perception_interfaces 1.1.2
Loading...
Searching...
No Matches
Functions
state_getters.h File Reference

Getter functions for objects state members. More...

#include <perception_msgs_utils/impl/state_index.h>
#include <perception_msgs_utils/impl/checks.h>

Go to the source code of this file.

Functions

double perception_msgs::object_access::getX (const ObjectState &state)
 Get the x-position for a given object state.
 
template<typename T >
double perception_msgs::object_access::getX (const T &obj)
 Get the x-position for a given template object that contains an object state.
 
double perception_msgs::object_access::getY (const ObjectState &state)
 Get the y-position for a given object state.
 
template<typename T >
double perception_msgs::object_access::getY (const T &obj)
 Get the y-position for a given template object that contains an object state.
 
double perception_msgs::object_access::getZ (const ObjectState &state)
 Get the z-position for a given object state.
 
template<typename T >
double perception_msgs::object_access::getZ (const T &obj)
 Get the z-position for a given template object that contains an object state.
 
double perception_msgs::object_access::getVelLon (const ObjectState &state)
 Get the longitudinal velocity for a given object state.
 
template<typename T >
double perception_msgs::object_access::getVelLon (const T &obj)
 Get the longitudinal velocity for a given template object that contains an object state.
 
double perception_msgs::object_access::getVelLat (const ObjectState &state)
 Get the longitudinal velocity for a given object state.
 
template<typename T >
double perception_msgs::object_access::getVelLat (const T &obj)
 Get the longitudinal velocity for a given template object that contains an object state.
 
double perception_msgs::object_access::getAccLon (const ObjectState &state)
 Get the longitudinal acceleration for a given object state.
 
template<typename T >
double perception_msgs::object_access::getAccLon (const T &obj)
 Get the longitudinal acceleration for a given template object that contains an object state.
 
double perception_msgs::object_access::getAccLat (const ObjectState &state)
 Get the lateral acceleration for a given object state.
 
template<typename T >
double perception_msgs::object_access::getAccLat (const T &obj)
 Get the lateral acceleration for a given template object that contains an object state.
 
double perception_msgs::object_access::getRoll (const ObjectState &state)
 Get the roll for a given object state.
 
template<typename T >
double perception_msgs::object_access::getRoll (const T &obj)
 Get the roll for a given template object that contains an object state.
 
double perception_msgs::object_access::getRollRate (const ObjectState &state)
 Get the roll-rate for a given object state.
 
template<typename T >
double perception_msgs::object_access::getRollRate (const T &obj)
 Get the roll-rate for a given template object that contains an object state.
 
double perception_msgs::object_access::getPitch (const ObjectState &state)
 Get the pitch for a given object state.
 
template<typename T >
double perception_msgs::object_access::getPitch (const T &obj)
 Get the pitch for a given template object that contains an object state.
 
double perception_msgs::object_access::getPitchRate (const ObjectState &state)
 Get the pitch-rate for a given object state.
 
template<typename T >
double perception_msgs::object_access::getPitchRate (const T &obj)
 Get the pitch-rate for a given template object that contains an object state.
 
double perception_msgs::object_access::getYaw (const ObjectState &state)
 Get the yaw for a given object state.
 
template<typename T >
double perception_msgs::object_access::getYaw (const T &obj)
 Get the yaw for a given template object that contains an object state.
 
double perception_msgs::object_access::getYawRate (const ObjectState &state)
 Get the yaw-rate for a given object state.
 
template<typename T >
double perception_msgs::object_access::getYawRate (const T &obj)
 Get the yaw-rate for a given template object that contains an object state.
 
double perception_msgs::object_access::getSteeringAngleAck (const ObjectState &state)
 Get the ackermann steering angle for a given object state.
 
template<typename T >
double perception_msgs::object_access::getSteeringAngleAck (const T &obj)
 Get the ackermann steering angle for a given template object that contains an object state.
 
double perception_msgs::object_access::getSteeringAngleRateAck (const ObjectState &state)
 Get the steering angle rate for a given object state.
 
template<typename T >
double perception_msgs::object_access::getSteeringAngleRateAck (const T &obj)
 Get the steering angle rate for a given template object that contains an object state.
 
double perception_msgs::object_access::getSteeringAngleFront (const ObjectState &state)
 Get the front wheel angle for a given object state.
 
template<typename T >
double perception_msgs::object_access::getSteeringAngleFront (const T &obj)
 Get the front wheel angle for a given template object that contains an object state.
 
double perception_msgs::object_access::getSteeringAngleRear (const ObjectState &state)
 Get the rear wheel angle for a given object state.
 
template<typename T >
double perception_msgs::object_access::getSteeringAngleRear (const T &obj)
 Get the rear wheel angle for a given template object that contains an object state.
 
double perception_msgs::object_access::getWidth (const ObjectState &state)
 Get the width for a given object state.
 
template<typename T >
double perception_msgs::object_access::getWidth (const T &obj)
 Get the width for a given template object that contains an object state.
 
double perception_msgs::object_access::getLength (const ObjectState &state)
 Get the length for a given object state.
 
template<typename T >
double perception_msgs::object_access::getLength (const T &obj)
 Get the length for a given template object that contains an object state.
 
double perception_msgs::object_access::getHeight (const ObjectState &state)
 Get the height for a given object state.
 
template<typename T >
double perception_msgs::object_access::getHeight (const T &obj)
 Get the height for a given template object that contains an object state.
 
bool perception_msgs::object_access::getStandstill (const ObjectState &state)
 Get standstill indication for a given object state.
 
template<typename T >
bool perception_msgs::object_access::getStandstill (const T &obj)
 Get the standstill indication for a given template object that contains an object state.
 
uint8_t perception_msgs::object_access::getTurnIndicator (const ObjectState &state)
 Get the turn indicator state for a given object state.
 
template<typename T >
uint8_t perception_msgs::object_access::getTurnIndicator (const T &obj)
 Get the turn indicator state for a given template object that contains an object state.
 
uint8_t perception_msgs::object_access::getBrakeLight (const ObjectState &state)
 Get the brake light state for a given object state.
 
template<typename T >
uint8_t perception_msgs::object_access::getBrakeLight (const T &obj)
 Get the brake light state for a given template object that contains an object state.
 
uint8_t perception_msgs::object_access::getReverseLight (const ObjectState &state)
 Get the reverse light state for a given object state.
 
template<typename T >
uint8_t perception_msgs::object_access::getReverseLight (const T &obj)
 Get the reverse light state for a given template object that contains an object state.
 
uint8_t perception_msgs::object_access::getTrafficLightState (const ObjectState &state)
 Get the traffic light state for a given object state.
 
template<typename T >
uint8_t perception_msgs::object_access::getTrafficLightState (const T &obj)
 Get the traffic light state for a given template object that contains an object state.
 
uint8_t perception_msgs::object_access::getTrafficLightType (const ObjectState &state)
 Get the traffic light type for a given object state.
 
template<typename T >
uint8_t perception_msgs::object_access::getTrafficLightType (const T &obj)
 Get the traffic light type for a given template object that contains an object state.
 

Detailed Description

Getter functions for objects state members.

Definition in file state_getters.h.

Function Documentation

◆ getAccLat() [1/2]

double perception_msgs::object_access::getAccLat ( const ObjectState &  state)
inline

Get the lateral acceleration for a given object state.

Parameters
state
Returns
double

Definition at line 163 of file state_getters.h.

163 {
165 return state.continuous_state[indexAccLat(state.model_id)];
166 }
void sanityCheckContinuousState(const ObjectState &state)
Perform sanity check on continuous state of given object state.
Definition checks.h:63
int indexAccLat(const unsigned char &model_id)
Get the vector-index that stores the lateral acceleration for a given model-id.

◆ getAccLat() [2/2]

template<typename T >
double perception_msgs::object_access::getAccLat ( const T &  obj)
inline

Get the lateral acceleration for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 176 of file state_getters.h.

176 {
177 return getAccLat(obj.state);
178 }
double getAccLat(const ObjectState &state)
Get the lateral acceleration for a given object state.

◆ getAccLon() [1/2]

double perception_msgs::object_access::getAccLon ( const ObjectState &  state)
inline

Get the longitudinal acceleration for a given object state.

Parameters
state
Returns
double

Definition at line 140 of file state_getters.h.

140 {
142 return state.continuous_state[indexAccLon(state.model_id)];
143 }
int indexAccLon(const unsigned char &model_id)
Get the vector-index that stores the longitudinal acceleration for a given model-id.

◆ getAccLon() [2/2]

template<typename T >
double perception_msgs::object_access::getAccLon ( const T &  obj)
inline

Get the longitudinal acceleration for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 153 of file state_getters.h.

153 {
154 return getAccLon(obj.state);
155 }
double getAccLon(const ObjectState &state)
Get the longitudinal acceleration for a given object state.

◆ getBrakeLight() [1/2]

uint8_t perception_msgs::object_access::getBrakeLight ( const ObjectState &  state)
inline

Get the brake light state for a given object state.

Parameters
state
Returns
uint8_t

Definition at line 533 of file state_getters.h.

533 {
535 return state.discrete_state[indexBrakeLight(state.model_id)];
536 }
void sanityCheckDiscreteState(const ObjectState &state)
Perform sanity check on discrete state of given object state.
Definition checks.h:83
int indexBrakeLight(const unsigned char &model_id)
Get the vector-index that stores the brake light state for a given model-id.

◆ getBrakeLight() [2/2]

template<typename T >
uint8_t perception_msgs::object_access::getBrakeLight ( const T &  obj)
inline

Get the brake light state for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
uint8_t

Definition at line 546 of file state_getters.h.

546 {
547 return getBrakeLight(obj.state);
548 }
uint8_t getBrakeLight(const ObjectState &state)
Get the brake light state for a given object state.

◆ getHeight() [1/2]

double perception_msgs::object_access::getHeight ( const ObjectState &  state)
inline

Get the height for a given object state.

Parameters
state
Returns
double

Definition at line 462 of file state_getters.h.

462 {
464 return state.continuous_state[indexHeight(state.model_id)];
465 }
int indexHeight(const unsigned char &model_id)
Get the vector-index that stores the height for a given model-id.

◆ getHeight() [2/2]

template<typename T >
double perception_msgs::object_access::getHeight ( const T &  obj)
inline

Get the height for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 475 of file state_getters.h.

475 {
476 return getHeight(obj.state);
477 }
double getHeight(const ObjectState &state)
Get the height for a given object state.

◆ getLength() [1/2]

double perception_msgs::object_access::getLength ( const ObjectState &  state)
inline

Get the length for a given object state.

Parameters
state
Returns
double

Definition at line 439 of file state_getters.h.

439 {
441 return state.continuous_state[indexLength(state.model_id)];
442 }
int indexLength(const unsigned char &model_id)
Get the vector-index that stores the length for a given model-id.

◆ getLength() [2/2]

template<typename T >
double perception_msgs::object_access::getLength ( const T &  obj)
inline

Get the length for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 452 of file state_getters.h.

452 {
453 return getLength(obj.state);
454 }
double getLength(const ObjectState &state)
Get the length for a given object state.

◆ getPitch() [1/2]

double perception_msgs::object_access::getPitch ( const ObjectState &  state)
inline

Get the pitch for a given object state.

Parameters
state
Returns
double

Definition at line 232 of file state_getters.h.

232 {
234 return state.continuous_state[indexPitch(state.model_id)];
235 }
int indexPitch(const unsigned char &model_id)
Get the vector-index that stores the pitch for a given model-id.

◆ getPitch() [2/2]

template<typename T >
double perception_msgs::object_access::getPitch ( const T &  obj)
inline

Get the pitch for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 245 of file state_getters.h.

245 {
246 return getPitch(obj.state);
247 }
double getPitch(const ObjectState &state)
Get the pitch for a given object state.

◆ getPitchRate() [1/2]

double perception_msgs::object_access::getPitchRate ( const ObjectState &  state)
inline

Get the pitch-rate for a given object state.

Parameters
state
Returns
double

Definition at line 255 of file state_getters.h.

255 {
257 return state.continuous_state[indexPitchRate(state.model_id)];
258 }
int indexPitchRate(const unsigned char &model_id)
Get the vector-index that stores the pitch rate for a given model-id.

◆ getPitchRate() [2/2]

template<typename T >
double perception_msgs::object_access::getPitchRate ( const T &  obj)
inline

Get the pitch-rate for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 268 of file state_getters.h.

268 {
269 return getPitchRate(obj.state);
270 }
double getPitchRate(const ObjectState &state)
Get the pitch-rate for a given object state.

◆ getReverseLight() [1/2]

uint8_t perception_msgs::object_access::getReverseLight ( const ObjectState &  state)
inline

Get the reverse light state for a given object state.

Parameters
state
Returns
uint8_t

Definition at line 556 of file state_getters.h.

556 {
558 return state.discrete_state[indexReverseLight(state.model_id)];
559 }
int indexReverseLight(const unsigned char &model_id)
Get the vector-index that stores the reverse light state for a given model-id.

◆ getReverseLight() [2/2]

template<typename T >
uint8_t perception_msgs::object_access::getReverseLight ( const T &  obj)
inline

Get the reverse light state for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
uint8_t

Definition at line 569 of file state_getters.h.

569 {
570 return getReverseLight(obj.state);
571 }
uint8_t getReverseLight(const ObjectState &state)
Get the reverse light state for a given object state.

◆ getRoll() [1/2]

double perception_msgs::object_access::getRoll ( const ObjectState &  state)
inline

Get the roll for a given object state.

Parameters
state
Returns
double

Definition at line 186 of file state_getters.h.

186 {
188 return state.continuous_state[indexRoll(state.model_id)];
189 }
int indexRoll(const unsigned char &model_id)
Get the vector-index that stores the roll for a given model-id.

◆ getRoll() [2/2]

template<typename T >
double perception_msgs::object_access::getRoll ( const T &  obj)
inline

Get the roll for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 199 of file state_getters.h.

199 {
200 return getRoll(obj.state);
201 }
double getRoll(const ObjectState &state)
Get the roll for a given object state.

◆ getRollRate() [1/2]

double perception_msgs::object_access::getRollRate ( const ObjectState &  state)
inline

Get the roll-rate for a given object state.

Parameters
state
Returns
double

Definition at line 209 of file state_getters.h.

209 {
211 return state.continuous_state[indexRollRate(state.model_id)];
212 }
int indexRollRate(const unsigned char &model_id)
Get the vector-index that stores the roll rate for a given model-id.

◆ getRollRate() [2/2]

template<typename T >
double perception_msgs::object_access::getRollRate ( const T &  obj)
inline

Get the roll-rate for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 222 of file state_getters.h.

222 {
223 return getRollRate(obj.state);
224 }
double getRollRate(const ObjectState &state)
Get the roll-rate for a given object state.

◆ getStandstill() [1/2]

bool perception_msgs::object_access::getStandstill ( const ObjectState &  state)
inline

Get standstill indication for a given object state.

Parameters
state
Returns
true
false

Definition at line 486 of file state_getters.h.

486 {
488 return state.discrete_state[indexStandstill(state.model_id)];
489 }
int indexStandstill(const unsigned char &model_id)
Get the vector-index that stores the standstill indication for a given model-id.

◆ getStandstill() [2/2]

template<typename T >
bool perception_msgs::object_access::getStandstill ( const T &  obj)
inline

Get the standstill indication for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
true
false

Definition at line 500 of file state_getters.h.

500 {
501 return getStandstill(obj.state);
502 }
bool getStandstill(const ObjectState &state)
Get standstill indication for a given object state.

◆ getSteeringAngleAck() [1/2]

double perception_msgs::object_access::getSteeringAngleAck ( const ObjectState &  state)
inline

Get the ackermann steering angle for a given object state.

Parameters
state
Returns
double

Definition at line 324 of file state_getters.h.

324 {
326 return state.continuous_state[indexSteeringAngleAck(state.model_id)];
327 }
int indexSteeringAngleAck(const unsigned char &model_id)
Get the vector-index that stores the ackermann steering angle for a given model-id.

◆ getSteeringAngleAck() [2/2]

template<typename T >
double perception_msgs::object_access::getSteeringAngleAck ( const T &  obj)
inline

Get the ackermann steering angle for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 337 of file state_getters.h.

337 {
338 return getSteeringAngleAck(obj.state);
339 }
double getSteeringAngleAck(const ObjectState &state)
Get the ackermann steering angle for a given object state.

◆ getSteeringAngleFront() [1/2]

double perception_msgs::object_access::getSteeringAngleFront ( const ObjectState &  state)
inline

Get the front wheel angle for a given object state.

Parameters
state
Returns
double

Definition at line 370 of file state_getters.h.

370 {
372 return state.continuous_state[indexSteeringAngleFront(state.model_id)];
373 }
int indexSteeringAngleFront(const unsigned char &model_id)
Get the vector-index that stores the front wheel angle for a given model-id.

◆ getSteeringAngleFront() [2/2]

template<typename T >
double perception_msgs::object_access::getSteeringAngleFront ( const T &  obj)
inline

Get the front wheel angle for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 383 of file state_getters.h.

383 {
384 return getSteeringAngleFront(obj.state);
385 }
double getSteeringAngleFront(const ObjectState &state)
Get the front wheel angle for a given object state.

◆ getSteeringAngleRateAck() [1/2]

double perception_msgs::object_access::getSteeringAngleRateAck ( const ObjectState &  state)
inline

Get the steering angle rate for a given object state.

Parameters
state
Returns
double

Definition at line 347 of file state_getters.h.

347 {
349 return state.continuous_state[indexSteeringAngleRateAck(state.model_id)];
350 }
int indexSteeringAngleRateAck(const unsigned char &model_id)
Get the vector-index that stores the steering angle rate for a given model-id.

◆ getSteeringAngleRateAck() [2/2]

template<typename T >
double perception_msgs::object_access::getSteeringAngleRateAck ( const T &  obj)
inline

Get the steering angle rate for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 360 of file state_getters.h.

360 {
361 return getSteeringAngleRateAck(obj.state);
362 }
double getSteeringAngleRateAck(const ObjectState &state)
Get the steering angle rate for a given object state.

◆ getSteeringAngleRear() [1/2]

double perception_msgs::object_access::getSteeringAngleRear ( const ObjectState &  state)
inline

Get the rear wheel angle for a given object state.

Parameters
state
Returns
double

Definition at line 393 of file state_getters.h.

393 {
395 return state.continuous_state[indexSteeringAngleRear(state.model_id)];
396 }
int indexSteeringAngleRear(const unsigned char &model_id)
Get the vector-index that stores the rear wheel angle for a given model-id.

◆ getSteeringAngleRear() [2/2]

template<typename T >
double perception_msgs::object_access::getSteeringAngleRear ( const T &  obj)
inline

Get the rear wheel angle for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 406 of file state_getters.h.

406 {
407 return getSteeringAngleRear(obj.state);
408 }
double getSteeringAngleRear(const ObjectState &state)
Get the rear wheel angle for a given object state.

◆ getTrafficLightState() [1/2]

uint8_t perception_msgs::object_access::getTrafficLightState ( const ObjectState &  state)
inline

Get the traffic light state for a given object state.

Parameters
state
Returns
uint8_t

Definition at line 580 of file state_getters.h.

580 {
582 return state.discrete_state[indexTrafficLightState(state.model_id)];
583 }
int indexTrafficLightState(const unsigned char &model_id)
Get the vector-index that stores the traffic light state for a given model-id.

◆ getTrafficLightState() [2/2]

template<typename T >
uint8_t perception_msgs::object_access::getTrafficLightState ( const T &  obj)
inline

Get the traffic light state for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
uint8_t

Definition at line 595 of file state_getters.h.

595 {
596 return getTrafficLightState(obj.state);
597 }
uint8_t getTrafficLightState(const ObjectState &state)
Get the traffic light state for a given object state.

◆ getTrafficLightType() [1/2]

uint8_t perception_msgs::object_access::getTrafficLightType ( const ObjectState &  state)
inline

Get the traffic light type for a given object state.

Parameters
state
Returns
uint8_t

Definition at line 606 of file state_getters.h.

606 {
608 return state.discrete_state[indexTrafficLightType(state.model_id)];
609 }
int indexTrafficLightType(const unsigned char &model_id)
Get the vector-index that stores the traffic light type for a given model-id.

◆ getTrafficLightType() [2/2]

template<typename T >
uint8_t perception_msgs::object_access::getTrafficLightType ( const T &  obj)
inline

Get the traffic light type for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
uint8_t

Definition at line 621 of file state_getters.h.

621 {
622 return getTrafficLightType(obj.state);
623 }
uint8_t getTrafficLightType(const ObjectState &state)
Get the traffic light type for a given object state.

◆ getTurnIndicator() [1/2]

uint8_t perception_msgs::object_access::getTurnIndicator ( const ObjectState &  state)
inline

Get the turn indicator state for a given object state.

Parameters
state
Returns
uint8_t

Definition at line 510 of file state_getters.h.

510 {
512 return state.discrete_state[indexTurnIndicator(state.model_id)];
513 }
int indexTurnIndicator(const unsigned char &model_id)
Get the vector-index that stores the turn indicator state for a given model-id.

◆ getTurnIndicator() [2/2]

template<typename T >
uint8_t perception_msgs::object_access::getTurnIndicator ( const T &  obj)
inline

Get the turn indicator state for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
uint8_t

Definition at line 523 of file state_getters.h.

523 {
524 return getTurnIndicator(obj.state);
525 }
uint8_t getTurnIndicator(const ObjectState &state)
Get the turn indicator state for a given object state.

◆ getVelLat() [1/2]

double perception_msgs::object_access::getVelLat ( const ObjectState &  state)
inline

Get the longitudinal velocity for a given object state.

Parameters
state
Returns
double

Definition at line 117 of file state_getters.h.

117 {
119 return state.continuous_state[indexVelLat(state.model_id)];
120 }
int indexVelLat(const unsigned char &model_id)
Get the vector-index that stores the lateral velocity for a given model-id.

◆ getVelLat() [2/2]

template<typename T >
double perception_msgs::object_access::getVelLat ( const T &  obj)
inline

Get the longitudinal velocity for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 130 of file state_getters.h.

130 {
131 return getVelLat(obj.state);
132 }
double getVelLat(const ObjectState &state)
Get the longitudinal velocity for a given object state.

◆ getVelLon() [1/2]

double perception_msgs::object_access::getVelLon ( const ObjectState &  state)
inline

Get the longitudinal velocity for a given object state.

Parameters
state
Returns
double

Definition at line 94 of file state_getters.h.

94 {
96 return state.continuous_state[indexVelLon(state.model_id)];
97 }
int indexVelLon(const unsigned char &model_id)
Get the vector-index that stores the longitudinal velocity for a given model-id.
Definition state_index.h:93

◆ getVelLon() [2/2]

template<typename T >
double perception_msgs::object_access::getVelLon ( const T &  obj)
inline

Get the longitudinal velocity for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 107 of file state_getters.h.

107 {
108 return getVelLon(obj.state);
109 }
double getVelLon(const ObjectState &state)
Get the longitudinal velocity for a given object state.

◆ getWidth() [1/2]

double perception_msgs::object_access::getWidth ( const ObjectState &  state)
inline

Get the width for a given object state.

Parameters
state
Returns
double

Definition at line 416 of file state_getters.h.

416 {
418 return state.continuous_state[indexWidth(state.model_id)];
419 }
int indexWidth(const unsigned char &model_id)
Get the vector-index that stores the width for a given model-id.

◆ getWidth() [2/2]

template<typename T >
double perception_msgs::object_access::getWidth ( const T &  obj)
inline

Get the width for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 429 of file state_getters.h.

429 {
430 return getWidth(obj.state);
431 }
double getWidth(const ObjectState &state)
Get the width for a given object state.

◆ getX() [1/2]

double perception_msgs::object_access::getX ( const ObjectState &  state)
inline

Get the x-position for a given object state.

Parameters
state
Returns
double

Definition at line 24 of file state_getters.h.

24 {
26 return state.continuous_state[indexX(state.model_id)];
27 }
int indexX(const unsigned char &model_id)
Get the vector-index that stores the x-position for a given model-id.
Definition state_index.h:24

◆ getX() [2/2]

template<typename T >
double perception_msgs::object_access::getX ( const T &  obj)
inline

Get the x-position for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 38 of file state_getters.h.

38 {
39 return getX(obj.state);
40 }
double getX(const ObjectState &state)
Get the x-position for a given object state.

◆ getY() [1/2]

double perception_msgs::object_access::getY ( const ObjectState &  state)
inline

Get the y-position for a given object state.

Parameters
state
Returns
double

Definition at line 48 of file state_getters.h.

48 {
50 return state.continuous_state[indexY(state.model_id)];
51 }
int indexY(const unsigned char &model_id)
Get the vector-index that stores the y-position for a given model-id.
Definition state_index.h:47

◆ getY() [2/2]

template<typename T >
double perception_msgs::object_access::getY ( const T &  obj)
inline

Get the y-position for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 61 of file state_getters.h.

61 {
62 return getY(obj.state);
63 }
double getY(const ObjectState &state)
Get the y-position for a given object state.

◆ getYaw() [1/2]

double perception_msgs::object_access::getYaw ( const ObjectState &  state)
inline

Get the yaw for a given object state.

Parameters
state
Returns
double

Definition at line 278 of file state_getters.h.

278 {
280 return state.continuous_state[indexYaw(state.model_id)];
281 }
int indexYaw(const unsigned char &model_id)
Get the vector-index that stores the yaw for a given model-id.

◆ getYaw() [2/2]

template<typename T >
double perception_msgs::object_access::getYaw ( const T &  obj)
inline

Get the yaw for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 291 of file state_getters.h.

291 {
292 return getYaw(obj.state);
293 }
double getYaw(const ObjectState &state)
Get the yaw for a given object state.

◆ getYawRate() [1/2]

double perception_msgs::object_access::getYawRate ( const ObjectState &  state)
inline

Get the yaw-rate for a given object state.

Parameters
state
Returns
double

Definition at line 301 of file state_getters.h.

301 {
303 return state.continuous_state[indexYawRate(state.model_id)];
304 }
int indexYawRate(const unsigned char &model_id)
Get the vector-index that stores the yaw-rate for a given model-id.

◆ getYawRate() [2/2]

template<typename T >
double perception_msgs::object_access::getYawRate ( const T &  obj)
inline

Get the yaw-rate for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 314 of file state_getters.h.

314 {
315 return getYawRate(obj.state);
316 }
double getYawRate(const ObjectState &state)
Get the yaw-rate for a given object state.

◆ getZ() [1/2]

double perception_msgs::object_access::getZ ( const ObjectState &  state)
inline

Get the z-position for a given object state.

Parameters
state
Returns
double

Definition at line 71 of file state_getters.h.

71 {
73 return state.continuous_state[indexZ(state.model_id)];
74 }
int indexZ(const unsigned char &model_id)
Get the vector-index that stores the z-position for a given model-id.
Definition state_index.h:70

◆ getZ() [2/2]

template<typename T >
double perception_msgs::object_access::getZ ( const T &  obj)
inline

Get the z-position for a given template object that contains an object state.

Template Parameters
T
Parameters
obj
Returns
double

Definition at line 84 of file state_getters.h.

84 {
85 return getZ(obj.state);
86 }
double getZ(const ObjectState &state)
Get the z-position for a given object state.