TraveSim Adapters  0.1
Protobuf adapters for TraveSim project
ros_side.cpp File Reference

Collection of data converters between ROS and local formats. More...

#include <unordered_map>
#include "travesim_adapters/data/converter/ros_side.hpp"
Include dependency graph for ros_side.cpp:

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...
 

Detailed Description

Collection of data converters between ROS and local formats.

Author
Felipe Gomes de Melo felip.nosp@m.e.go.nosp@m.mes@t.nosp@m.hund.nosp@m.eratz.nosp@m..org
Lucas Haug lucas.nosp@m..hau.nosp@m.g@thu.nosp@m.nder.nosp@m.atz.o.nosp@m.rg
Date
06/2021

Definition in file ros_side.cpp.

Macro Definition Documentation

◆ quaternion_to_theta

#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 Documentation

◆ lookup_table_t

typedef std::unordered_map<std::string, travesim::EntityState*> lookup_table_t

Definition at line 21 of file ros_side.cpp.