> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# File vehicle_state.h

![][C++]

**Location**: `autonomy/simulation/utilities/vehicle_state/vehicle_state.h`

## Classes

* [simulation\_framework::utilities::vehicle::state::OrientationT](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/structsimulation__framework_1_1utilities_1_1vehicle_1_1state_1_1OrientationT.md)
* [simulation\_framework::utilities::vehicle::state::Vector3DT](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/structsimulation__framework_1_1utilities_1_1vehicle_1_1state_1_1Vector3DT.md)
* [simulation\_framework::utilities::vehicle::state::MotionStateT](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/structsimulation__framework_1_1utilities_1_1vehicle_1_1state_1_1MotionStateT.md)
* [simulation\_framework::utilities::vehicle::state::ControlInputT](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/structsimulation__framework_1_1utilities_1_1vehicle_1_1state_1_1ControlInputT)

## Namespaces

* [simulation\_framework](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/namespacesimulation__framework.md)
* [simulation\_framework::utilities](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/namespacesimulation__framework_1_1utilities.md)
* [simulation\_framework::utilities::vehicle](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/namespacesimulation__framework_1_1utilities_1_1vehicle.md)
* [simulation\_framework::utilities::vehicle::state](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/namespacesimulation__framework_1_1utilities_1_1vehicle_1_1state.md)

## Includes

* \<iostream>

## Included by

* [i\_vehicle.h](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/i__vehicle_8h.md)
* [i\_vehicle\_controller.h](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/i__vehicle__controller_8h.md)
* [i\_vehicle\_model.h](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/i__vehicle__model_8h.md)

## Source

```cpp theme={null}


#ifndef AUTONOMY_SIMULATION_UTILITIES_VEHICLESTATE_VEHICLESTATE_H
#define AUTONOMY_SIMULATION_UTILITIES_VEHICLESTATE_VEHICLESTATE_H

#include <iostream>
namespace simulation_framework
{
namespace utilities
{
namespace vehicle
{
namespace state
{

template <typename T>
struct OrientationT
{
    T yaw;
    T roll;
    T pitch;
};

template <typename T>
struct Vector3DT
{
    T x;
    T y;
    T z;
};

template <typename T>
struct MotionStateT
{
    Vector3DT<T> position;
    OrientationT<T> orientation;
    Vector3DT<T> velocity;
    Vector3DT<T> acceleration;
};

template <typename T>
struct ControlInputT
{
    T steering_angle;
    T acceleration;
};

template <typename T>
void PrintMotionState(const MotionStateT<T>& state, std::ostream& os = std::cout)
{
    os << "Position: (" << state.position.x << ", " << state.position.y << ", " << state.position.z << ")\n";
    os << "Orientation: (Yaw: " << state.orientation.yaw << ", Roll: " << state.orientation.roll
       << ", Pitch: " << state.orientation.pitch << ")\n";
    os << "Velocity: (" << state.velocity.x << ", " << state.velocity.y << ", " << state.velocity.z << ")\n";
    os << "Acceleration: (" << state.acceleration.x << ", " << state.acceleration.y << ", " << state.acceleration.z
       << ")\n";
}

using Orientation = OrientationT<double>;
using Vector3D = Vector3DT<double>;
using MotionState = MotionStateT<double>;
using ControlInput = ControlInputT<double>;

}  // namespace state
}  // namespace vehicle
}  // namespace utilities

}  // namespace simulation_framework

#endif  // AUTONOMY_SIMULATION_UTILITIES_VEHICLESTATE_VEHICLESTATE_H
```

[private]: https://img.shields.io/badge/-private-red "private"

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[const]: https://img.shields.io/badge/-const-lightblue "const"

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[protected]: https://img.shields.io/badge/-protected-yellow "protected"

[static]: https://img.shields.io/badge/-static-lightgrey "static"
