TraveSim Adapters
0.1
Protobuf adapters for TraveSim project
|
Collection of data converters between ROS and local formats. More...
Go to the source code of this file.
Namespaces | |
travesim | |
travesim::converter | |
Macros | |
#define | quaternion_to_theta(qw, qx, qy, qz) atan2(2 * (qw * qz + qx * qy), 1 - 2 * (qy * qy + qz * qz)) |
Typedefs | |
typedef std::unordered_map< std::string, travesim::EntityState * > | lookup_table_t |
Functions | |
travesim::Vector2D | travesim::converter::Point_to_Vector2D (geometry_msgs::Point *point) |
Function to convert geometry_msgs::Point to travesim::Vector2D. More... | |
travesim::Vector2D | travesim::converter::Vector3_to_Vector2D (geometry_msgs::Vector3 *vector3) |
Function to convert geometry_msgs::Vector3 to travesim::Vector2D. More... | |
geometry_msgs::Vector3 | travesim::converter::Vector2D_to_Vector3 (Vector2D *vector2d) |
Function to convert travesim::Vector2D to geometry_msgs::Vector3. More... | |
geometry_msgs::Point | travesim::converter::Vector2D_to_Point (Vector2D *vector2d, double z=DEFAULT_Z_VALUE_BALL) |
Function to convert travesim::Vector2D to geometry_msgs::Point. More... | |
travesim::EntityState | travesim::converter::ModelState_to_EntityState (gazebo_msgs::ModelState *model_state) |
Function to convert gazebo_msgs::ModelState to travesim::EntityState. More... | |
travesim::RobotState | travesim::converter::ModelState_to_RobotState (gazebo_msgs::ModelState *model_state, bool is_yellow=true, int id=0) |
Function to convert gazebo_msgs::ModelState to travesim::RobotState. More... | |
gazebo_msgs::ModelState | travesim::converter::EntityState_to_ModelState (EntityState *entity_state, double z=DEFAULT_Z_VALUE_BALL) |
Function to convert travesim::EntityState to gazebo_msgs::ModelState. More... | |
gazebo_msgs::ModelState | travesim::converter::RobotState_to_ModelState (RobotState *robot_state, double z=DEFAULT_Z_VALUE_ROBOT) |
Function to convert travesim::RobotState to gazebo_msgs::ModelState. More... | |
travesim::FieldState | travesim::converter::ModelStates_to_FieldState (gazebo_msgs::ModelStates::ConstPtr model_states, TeamsFormation teams_formation) |
Function to convert gazebo_msgs::ModelStates to travesim::FieldState. More... | |
Collection of data converters between ROS and local formats.
Definition in file ros_side.cpp.
#define quaternion_to_theta | ( | qw, | |
qx, | |||
qy, | |||
qz | |||
) | atan2(2 * (qw * qz + qx * qy), 1 - 2 * (qy * qy + qz * qz)) |
Definition at line 19 of file ros_side.cpp.
typedef std::unordered_map<std::string, travesim::EntityState*> lookup_table_t |
Definition at line 21 of file ros_side.cpp.