perception_interfaces 1.0.0
|
Convenience getter functions for object state members. More...
#include <perception_msgs_utils/impl/checks.h>
#include <perception_msgs_utils/impl/state_getters.h>
#include <perception_msgs_utils/impl/state_index.h>
#include <algorithm>
#include <cmath>
Go to the source code of this file.
Functions | |
std::vector< double > | perception_msgs::object_access::getContinuousState (const ObjectState &state) |
Get the continuous state for a given object state. | |
template<typename T > | |
std::vector< double > | perception_msgs::object_access::getContinuousState (const T &obj) |
Get the continuous state for a given template object that contains an object state. | |
std::vector< long int > | perception_msgs::object_access::getDiscreteState (const ObjectState &state) |
Get the discrete state for a given object state. | |
template<typename T > | |
std::vector< long int > | perception_msgs::object_access::getDiscreteState (const T &obj) |
Get the discrete state for a given template object that contains an object state. | |
std::vector< double > | perception_msgs::object_access::getContinuousStateCovariance (const ObjectState &state) |
Get the continuous state covariance for a given object state. | |
template<typename T > | |
std::vector< double > | perception_msgs::object_access::getContinuousStateCovariance (const T &obj) |
Get the continuous state covariance for a given template object that contains an object state. | |
double | perception_msgs::object_access::getContinuousStateCovarianceAt (const ObjectState &state, const unsigned int i, const unsigned int j) |
Get the continuous state covariance entry (i,j) for a given object state. | |
template<typename T > | |
double | perception_msgs::object_access::getContinuousStateCovarianceAt (const T &obj, const unsigned int i, const unsigned int j) |
Get the continuous state covariance entry (i,j) for a given template object that contains an object state. | |
std::vector< double > | perception_msgs::object_access::getContinuousStateCovarianceDiagonal (const ObjectState &state) |
Get the continuous state covariance diagonal for a given object state. | |
template<typename T > | |
std::vector< double > | perception_msgs::object_access::getContinuousStateCovarianceDiagonal (const T &obj) |
Get the continuous state covariance diagonal for a given template object that contains an object state. | |
gm::Point | perception_msgs::object_access::getPosition (const ObjectState &state) |
Get the position of a given object state. | |
template<typename T > | |
gm::Point | perception_msgs::object_access::getPosition (const T &obj) |
Get the position of a given template object that contains an object state. | |
gm::Quaternion | perception_msgs::object_access::getOrientation (const ObjectState &state) |
Get the orientation of a given object state. | |
template<typename T > | |
gm::Quaternion | perception_msgs::object_access::getOrientation (const T &obj) |
Get the orientation of a given template object that contains an object state. | |
gm::Pose | perception_msgs::object_access::getPose (const ObjectState &state) |
Get the pose of a given object state. | |
template<typename T > | |
gm::Pose | perception_msgs::object_access::getPose (const T &obj) |
Get the pose of a given template object that contains an object state. | |
std::vector< double > | perception_msgs::object_access::getPoseCovariance (const ObjectState &state) |
Get the pose covariance of a given object state. | |
template<typename T > | |
std::vector< double > | perception_msgs::object_access::getPoseCovariance (const T &obj) |
Get the pose covariance of a given template object that contains an object state. | |
gm::PoseWithCovariance | perception_msgs::object_access::getPoseWithCovariance (const ObjectState &state) |
Get the pose with covariance of a given object state. | |
template<typename T > | |
gm::PoseWithCovariance | perception_msgs::object_access::getPoseWithCovariance (const T &obj) |
Get the pose with covariance of a given template object that contains an object state. | |
gm::Vector3 | perception_msgs::object_access::getVelocity (const ObjectState &state) |
Get the velocity of a given object state. | |
template<typename T > | |
gm::Vector3 | perception_msgs::object_access::getVelocity (const T &obj) |
Get the velocity of a given template object that contains an object state. | |
double | perception_msgs::object_access::getVelocityMagnitude (const ObjectState &state) |
Get the velocity magnitude of a given object state. | |
template<typename T > | |
double | perception_msgs::object_access::getVelocityMagnitude (const T &obj) |
Get the velocity magnitude of a given template object that contains an object state. | |
gm::Vector3 | perception_msgs::object_access::getAcceleration (const ObjectState &state) |
Get the acceleration of a given object state. | |
template<typename T > | |
gm::Vector3 | perception_msgs::object_access::getAcceleration (const T &obj) |
Get the acceleration of a given template object that contains an object state. | |
double | perception_msgs::object_access::getAccelerationMagnitude (const ObjectState &state) |
Get the acceleration magnitude of a given object state. | |
template<typename T > | |
double | perception_msgs::object_access::getAccelerationMagnitude (const T &obj) |
Get the acceleration magnitude of a given template object that contains an object state. | |
double | perception_msgs::object_access::getRollInDeg (const ObjectState &state) |
Get the roll in degree of a given object state. | |
template<typename T > | |
double | perception_msgs::object_access::getRollInDeg (const T &obj) |
Get the roll in degree of a given template object that contains an object state. | |
double | perception_msgs::object_access::getPitchInDeg (const ObjectState &state) |
Get the pitch in degree of a given object state. | |
template<typename T > | |
double | perception_msgs::object_access::getPitchInDeg (const T &obj) |
Get the pitch in degree of a given template object that contains an object state. | |
double | perception_msgs::object_access::getYawInDeg (const ObjectState &state) |
Get the yaw in degree of a given object state. | |
template<typename T > | |
double | perception_msgs::object_access::getYawInDeg (const T &obj) |
Get the yaw in degree of a given template object that contains an object state. | |
gm::PoseWithCovariance | perception_msgs::object_access::getVelocityXYZWithCovariance (const ObjectState &state) |
Get the velocity XYZ with covariance of a object state. | |
template<typename T > | |
gm::PoseWithCovariance | perception_msgs::object_access::getVelocityXYZWithCovariance (const T &obj) |
Get the velocity XYZ with covariance of a given template object that contains an object state. | |
gm::Vector3 | perception_msgs::object_access::getVelocityXYZ (const ObjectState &state) |
Get the velocity XYZ of a given object state. | |
template<typename T > | |
gm::Vector3 | perception_msgs::object_access::getVelocityXYZ (const T &obj) |
Get the velocity XYZ of a given template object that contains an object state. | |
double | perception_msgs::object_access::getVelX (const ObjectState &state) |
Get the x-velocity of a given object state. | |
template<typename T > | |
double | perception_msgs::object_access::getVelX (const T &obj) |
Get the x-velocity of a given template object that contains an object state. | |
double | perception_msgs::object_access::getVelY (const ObjectState &state) |
Get the y-velocity of a given object state. | |
template<typename T > | |
double | perception_msgs::object_access::getVelY (const T &obj) |
Get the y-velocity of a given template object that contains an object state. | |
gm::PoseWithCovariance | perception_msgs::object_access::getAccelerationXYZWithCovariance (const ObjectState &state) |
Get the acceleration XYZ with covariance of a given object state. | |
template<typename T > | |
gm::PoseWithCovariance | perception_msgs::object_access::getAccelerationXYZWithCovariance (const T &obj) |
Get the acceleration XYZ with covariance of a given template object that contains an object state. | |
gm::Vector3 | perception_msgs::object_access::getAccelerationXYZ (const ObjectState &state) |
Get the acceleration XYZ of a given object state. | |
template<typename T > | |
gm::Vector3 | perception_msgs::object_access::getAccelerationXYZ (const T &obj) |
Get the acceleration XYZ of a given template object that contains an object state. | |
double | perception_msgs::object_access::getAccX (const ObjectState &state) |
Get the x-acceleration of a given object state. | |
template<typename T > | |
double | perception_msgs::object_access::getAccX (const T &obj) |
Get the x-acceleration of a given template object that contains an object state. | |
double | perception_msgs::object_access::getAccY (const ObjectState &state) |
Get the y-acceleration of a given object state. | |
template<typename T > | |
double | perception_msgs::object_access::getAccY (const T &obj) |
Get the y-acceleration of a given template object that contains an object state. | |
ObjectClassification | perception_msgs::object_access::getClassWithHighestProbability (const ObjectState &state) |
Get the classification with highest probability of a given object state. | |
template<typename T > | |
ObjectClassification | perception_msgs::object_access::getClassWithHighestProbability (const T &obj) |
Get the classification with highest probability of a given template object that contains an object state. | |
Convenience getter functions for object state members.
============================================================================ MIT License
Copyright (c) 2025 Institute for Automotive Engineering (ika), RWTH Aachen University
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
Definition in file convenience_state_getters.h.
|
inline |
Get the acceleration of a given object state.
state |
Definition at line 422 of file convenience_state_getters.h.
|
inline |
Get the acceleration of a given template object that contains an object state.
T |
obj |
Definition at line 439 of file convenience_state_getters.h.
|
inline |
Get the acceleration magnitude of a given object state.
state |
Definition at line 450 of file convenience_state_getters.h.
|
inline |
Get the acceleration magnitude of a given template object that contains an object state.
T |
obj |
Definition at line 465 of file convenience_state_getters.h.
|
inline |
Get the acceleration XYZ of a given object state.
state |
Definition at line 743 of file convenience_state_getters.h.
|
inline |
Get the acceleration XYZ of a given template object that contains an object state.
T |
obj |
Definition at line 763 of file convenience_state_getters.h.
|
inline |
Get the acceleration XYZ with covariance of a given object state.
state |
Definition at line 680 of file convenience_state_getters.h.
|
inline |
Get the acceleration XYZ with covariance of a given template object that contains an object state.
T |
obj |
Definition at line 732 of file convenience_state_getters.h.
|
inline |
Get the x-acceleration of a given object state.
state |
Definition at line 774 of file convenience_state_getters.h.
|
inline |
Get the x-acceleration of a given template object that contains an object state.
T |
obj |
Definition at line 784 of file convenience_state_getters.h.
|
inline |
Get the y-acceleration of a given object state.
state |
Definition at line 795 of file convenience_state_getters.h.
|
inline |
Get the y-acceleration of a given template object that contains an object state.
T |
obj |
Definition at line 805 of file convenience_state_getters.h.
|
inline |
Get the classification with highest probability of a given object state.
state |
Definition at line 818 of file convenience_state_getters.h.
|
inline |
Get the classification with highest probability of a given template object that contains an object state.
T |
obj |
Definition at line 843 of file convenience_state_getters.h.
|
inline |
Get the continuous state for a given object state.
state |
Definition at line 53 of file convenience_state_getters.h.
|
inline |
Get the continuous state for a given template object that contains an object state.
T |
obj |
Definition at line 67 of file convenience_state_getters.h.
|
inline |
Get the continuous state covariance for a given object state.
state |
Definition at line 103 of file convenience_state_getters.h.
|
inline |
Get the continuous state covariance for a given template object that contains an object state.
T |
obj |
Definition at line 117 of file convenience_state_getters.h.
|
inline |
Get the continuous state covariance entry (i,j) for a given object state.
state | |
i | |
j |
Definition at line 130 of file convenience_state_getters.h.
|
inline |
Get the continuous state covariance entry (i,j) for a given template object that contains an object state.
T |
obj | |
i | |
j |
Definition at line 148 of file convenience_state_getters.h.
|
inline |
Get the continuous state covariance diagonal for a given object state.
state |
Definition at line 160 of file convenience_state_getters.h.
|
inline |
Get the continuous state covariance diagonal for a given template object that contains an object state.
T |
obj |
Definition at line 176 of file convenience_state_getters.h.
|
inline |
Get the discrete state for a given object state.
state |
Definition at line 78 of file convenience_state_getters.h.
|
inline |
Get the discrete state for a given template object that contains an object state.
T |
obj |
Definition at line 92 of file convenience_state_getters.h.
|
inline |
Get the orientation of a given object state.
state |
Definition at line 218 of file convenience_state_getters.h.
|
inline |
Get the orientation of a given template object that contains an object state.
T |
obj |
Definition at line 237 of file convenience_state_getters.h.
|
inline |
Get the pitch in degree of a given object state.
state |
Definition at line 500 of file convenience_state_getters.h.
|
inline |
Get the pitch in degree of a given template object that contains an object state.
T |
obj |
Definition at line 510 of file convenience_state_getters.h.
|
inline |
Get the pose of a given object state.
state |
Definition at line 248 of file convenience_state_getters.h.
|
inline |
Get the pose of a given template object that contains an object state.
T |
obj |
Definition at line 264 of file convenience_state_getters.h.
|
inline |
Get the pose covariance of a given object state.
state |
Definition at line 275 of file convenience_state_getters.h.
|
inline |
Get the pose covariance of a given template object that contains an object state.
T |
obj |
Definition at line 327 of file convenience_state_getters.h.
|
inline |
Get the pose with covariance of a given object state.
state |
Definition at line 339 of file convenience_state_getters.h.
|
inline |
Get the pose with covariance of a given template object that contains an object state.
T |
obj |
Definition at line 358 of file convenience_state_getters.h.
|
inline |
Get the position of a given object state.
state |
Definition at line 190 of file convenience_state_getters.h.
|
inline |
Get the position of a given template object that contains an object state.
T |
obj |
Definition at line 207 of file convenience_state_getters.h.
|
inline |
Get the roll in degree of a given object state.
state |
Definition at line 479 of file convenience_state_getters.h.
|
inline |
Get the roll in degree of a given template object that contains an object state.
T |
obj |
Definition at line 489 of file convenience_state_getters.h.
|
inline |
Get the velocity of a given object state.
state |
Definition at line 369 of file convenience_state_getters.h.
|
inline |
Get the velocity of a given template object that contains an object state.
T |
obj |
Definition at line 386 of file convenience_state_getters.h.
|
inline |
Get the velocity magnitude of a given object state.
state |
Definition at line 397 of file convenience_state_getters.h.
|
inline |
Get the velocity magnitude of a given template object that contains an object state.
T |
obj |
Definition at line 412 of file convenience_state_getters.h.
|
inline |
Get the velocity XYZ of a given object state.
state |
Definition at line 607 of file convenience_state_getters.h.
|
inline |
Get the velocity XYZ of a given template object that contains an object state.
T |
obj |
Definition at line 627 of file convenience_state_getters.h.
|
inline |
Get the velocity XYZ with covariance of a object state.
state |
Definition at line 542 of file convenience_state_getters.h.
|
inline |
Get the velocity XYZ with covariance of a given template object that contains an object state.
T |
obj |
Definition at line 596 of file convenience_state_getters.h.
|
inline |
Get the x-velocity of a given object state.
state |
Definition at line 638 of file convenience_state_getters.h.
|
inline |
Get the x-velocity of a given template object that contains an object state.
T |
obj |
Definition at line 648 of file convenience_state_getters.h.
|
inline |
Get the y-velocity of a given object state.
state |
Definition at line 659 of file convenience_state_getters.h.
|
inline |
Get the y-velocity of a given template object that contains an object state.
T |
obj |
Definition at line 669 of file convenience_state_getters.h.
|
inline |
Get the yaw in degree of a given object state.
state |
Definition at line 521 of file convenience_state_getters.h.
|
inline |
Get the yaw in degree of a given template object that contains an object state.
T |
obj |
Definition at line 531 of file convenience_state_getters.h.