35namespace perception_msgs {
 
   37namespace object_access {
 
   39  const std::string kExceptionInvalidStateSize = 
"Invalid continuous state size for model with ID: ";
 
   40  const std::string kExceptionInvalidDiscreteStateSize = 
"Invalid discrete state size for model with ID: ";
 
   41  const std::string kExceptionInvalidStateCovarianceSize = 
"Invalid continuous state covariance size for model with ID: ";
 
   51    if (state_size != exp_state_size)
 
   52      throw std::invalid_argument(kExceptionInvalidStateSize + std::to_string(state.model_id) + 
", " + std::to_string(state_size) + 
" != " + std::to_string(exp_state_size));
 
 
   63    if (discrete_state_size != exp_discrete_state_size)
 
   64      throw std::invalid_argument(kExceptionInvalidDiscreteStateSize + std::to_string(state.model_id) + 
", " + std::to_string(discrete_state_size) + 
" != " + std::to_string(exp_discrete_state_size));
 
 
   75    if (state_cov_size != exp_state_cov_size)
 
   76      throw std::invalid_argument(kExceptionInvalidStateCovarianceSize + std::to_string(state.model_id) + 
", " + std::to_string(state_cov_size) + 
" != " + std::to_string(exp_state_cov_size));
 
 
  114  template <
typename T>
 
  134  template <
typename T>
 
  156  template <
typename T>
 
void sanityCheckFullState(const ObjectState &state)
Perform sanity check on full state of given object state.
 
void sanityCheckContinuousStateCovarianceSize(const ObjectState &state)
Perform sanity check on continuous state covariance size of given object state.
 
void sanityCheckContinuousState(const ObjectState &state)
Perform sanity check on continuous state of given object state.
 
void sanityCheckContinuousStateSize(const ObjectState &state)
Perform sanity check on continuous state size of given object state.
 
void sanityCheckDiscreteStateSize(const ObjectState &state)
Perform sanity check on discrete state size of given object state.
 
void sanityCheckContinuousStateCovariance(const ObjectState &state)
Perform sanity check on continuous state covariance of given object state.
 
void sanityCheckDiscreteState(const ObjectState &state)
Perform sanity check on discrete state of given object state.
 
Object state utility functions.
 
int getDiscreteStateSize(const ObjectState &state)
Get the discrete state size for a given object state.
 
int getContinuousStateSize(const ObjectState &state)
Get the continuous state size for a given object state.
 
int getContinuousStateCovarianceSize(const ObjectState &state)
Get the continuous state covariance size for a given object state.