15 #ifndef __CONVERTER_H__ 16 #define __CONVERTER_H__ 20 #include <geometry_msgs/Point.h> 21 #include <geometry_msgs/Vector3.h> 22 #include <gazebo_msgs/ModelState.h> 23 #include <gazebo_msgs/ModelStates.h> 30 #define DEFAULT_Z_VALUE_BALL 0.032 31 #define DEFAULT_Z_VALUE_ROBOT 0.012 33 #define ROBOT_NAME(color, num) color "_team/robot_" + std::to_string(num) 35 #define BALL_NAME "vss_ball" 37 #define DEFAULT_ENTITY_NAME BALL_NAME 38 #define DEFAULT_REFERENCE_FRAME "world" 121 #endif // __CONVERTER_H__ Data structure to hold the field state.
Entity state data structure.
travesim::Vector2D Vector3_to_Vector2D(geometry_msgs::Vector3 *vector3)
Function to convert geometry_msgs::Vector3 to travesim::Vector2D.
Common constants and types for the data structures.
Data structure to hold a two dimensional vector.
travesim::FieldState ModelStates_to_FieldState(gazebo_msgs::ModelStates::ConstPtr model_states, TeamsFormation teams_formation)
Function to convert gazebo_msgs::ModelStates to travesim::FieldState.
Robot state data structure.
Data structure to hold the state of a robot in the simulation.
geometry_msgs::Vector3 Vector2D_to_Vector3(Vector2D *vector2d)
Function to convert travesim::Vector2D to geometry_msgs::Vector3.
travesim::EntityState ModelState_to_EntityState(gazebo_msgs::ModelState *model_state)
Function to convert gazebo_msgs::ModelState to travesim::EntityState.
travesim::RobotState ModelState_to_RobotState(gazebo_msgs::ModelState *model_state, bool is_yellow=true, int id=0)
Function to convert gazebo_msgs::ModelState to travesim::RobotState.
travesim::Vector2D Point_to_Vector2D(geometry_msgs::Point *point)
Function to convert geometry_msgs::Point to travesim::Vector2D.
gazebo_msgs::ModelState RobotState_to_ModelState(RobotState *robot_state, double z=DEFAULT_Z_VALUE_ROBOT)
Function to convert travesim::RobotState to gazebo_msgs::ModelState.
TeamsFormation
Formation of the teams.
geometry_msgs::Point Vector2D_to_Point(Vector2D *vector2d, double z=DEFAULT_Z_VALUE_BALL)
Function to convert travesim::Vector2D to geometry_msgs::Point.
Data structure to hold the state of a entity in the simulation.
#define DEFAULT_Z_VALUE_BALL
#define DEFAULT_Z_VALUE_ROBOT
gazebo_msgs::ModelState EntityState_to_ModelState(EntityState *entity_state, double z=DEFAULT_Z_VALUE_BALL)
Function to convert travesim::EntityState to gazebo_msgs::ModelState.