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. | |
gm::Point | perception_msgs::object_access::getCenterPosition (const ObjectState &state) |
Get the object's geometric center position. | |
template<typename T > | |
gm::Point | perception_msgs::object_access::getCenterPosition (const T &object) |
Get the object's geometric center position. | |
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 425 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 441 of file convenience_state_getters.h.
|
inline |
Get the acceleration magnitude of a given object state.
state |
Definition at line 451 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 730 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 749 of file convenience_state_getters.h.
|
inline |
Get the acceleration XYZ with covariance of a given object state.
state |
Definition at line 669 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 720 of file convenience_state_getters.h.
|
inline |
Get the x-acceleration of a given object state.
state |
Definition at line 759 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 769 of file convenience_state_getters.h.
|
inline |
Get the y-acceleration of a given object state.
state |
Definition at line 779 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 789 of file convenience_state_getters.h.
|
inline |
Get the object's geometric center position.
state | The state to get the center position from |
Definition at line 242 of file convenience_state_getters.h.
|
inline |
Get the object's geometric center position.
T |
object | The object to get the center position from |
Definition at line 264 of file convenience_state_getters.h.
|
inline |
Get the classification with highest probability of a given object state.
state |
Definition at line 801 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 823 of file convenience_state_getters.h.
|
inline |
Get the continuous state for a given object state.
state |
Definition at line 51 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 64 of file convenience_state_getters.h.
|
inline |
Get the continuous state covariance for a given object state.
state |
Definition at line 97 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 110 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 122 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 138 of file convenience_state_getters.h.
|
inline |
Get the continuous state covariance diagonal for a given object state.
state |
Definition at line 148 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 163 of file convenience_state_getters.h.
|
inline |
Get the discrete state for a given object state.
state |
Definition at line 74 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 87 of file convenience_state_getters.h.
|
inline |
Get the orientation of a given object state.
state |
Definition at line 201 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 219 of file convenience_state_getters.h.
|
inline |
Get the pitch in degree of a given object state.
state |
Definition at line 497 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 507 of file convenience_state_getters.h.
|
inline |
Get the pose of a given object state.
state |
Definition at line 229 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 276 of file convenience_state_getters.h.
|
inline |
Get the pose covariance of a given object state.
state |
Definition at line 286 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 337 of file convenience_state_getters.h.
|
inline |
Get the pose with covariance of a given object state.
state |
Definition at line 348 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 366 of file convenience_state_getters.h.
|
inline |
Get the position of a given object state.
state |
Definition at line 175 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 191 of file convenience_state_getters.h.
|
inline |
Get the roll in degree of a given object state.
state |
Definition at line 477 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 487 of file convenience_state_getters.h.
|
inline |
Get the velocity of a given object state.
state |
Definition at line 376 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 392 of file convenience_state_getters.h.
|
inline |
Get the velocity magnitude of a given object state.
state |
Definition at line 402 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 416 of file convenience_state_getters.h.
|
inline |
Get the velocity XYZ of a given object state.
state |
Definition at line 600 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 619 of file convenience_state_getters.h.
|
inline |
Get the velocity XYZ with covariance of a object state.
state |
Definition at line 537 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 590 of file convenience_state_getters.h.
|
inline |
Get the x-velocity of a given object state.
state |
Definition at line 629 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 639 of file convenience_state_getters.h.
|
inline |
Get the y-velocity of a given object state.
state |
Definition at line 649 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 659 of file convenience_state_getters.h.
|
inline |
Get the yaw in degree of a given object state.
state |
Definition at line 517 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 527 of file convenience_state_getters.h.