23 #include "biward_drive_mode.h" 24 #include "forward_drive_mode.h" 25 #include "backward_drive_mode.h" 53 mod_forward_ = forward;
54 mod_backward_ = backward;
113 if ( count_forward_ == 1 && fabs( angle_to_target ) > M_PI_2+0.1 )
116 else if ( count_forward_ == 1 )
119 else if ( count_forward_ == -1 && fabs( angle_to_target ) < M_PI_2-0.1 )
122 else if ( count_forward_ == -1 )
130 if ( count_forward_ == 1 )
131 drive_mode = mod_forward_;
133 drive_mode = mod_backward_;
float x
Translation in x-direction.
virtual void update()=0
Calculate the proposed settings which are asked for afterwards.
cart_coord_2d_t local_target_
local target
float get_proposed_trans_x()
Returns the proposed x translation.
Logger * logger_
The fawkes logger.
Fawkes library namespace.
BiwardDriveModule(ForwardDriveModule *forward, BackwardDriveModule *backward, Logger *logger, Configuration *config)
Constructor.
colli_trans_rot_t proposed_
proposed translation and rotation for next timestep
NavigatorInterface::OrientationMode orient_mode_
orient mode of nav if
void set_current_target(float x, float y, float ori)
Sets the current target.
bool stop_at_target_
flag if stopping on or after target
float max_trans_
The maximum translation speed.
float y
Translation in y-direction.
float rot
Rotation around z-axis.
float max_rot_
The maximum rotation speed.
void set_local_target(float x, float y)
Set the local targetpoint found by the search.
field_pos_t target_
current target
NavigatorInterface::DriveMode drive_mode_
the drive mode name
colli_trans_rot_t robot_vel_
current robot velocity
void set_local_trajec(float x, float y)
Set the local trajectory point found by the search.
void set_current_robo_pos(float x, float y, float ori)
Sets the current robo position.
float x
x coordinate in meters
void set_current_robo_speed(float x, float y, float rot)
Sets the current robo speed.
Moving allow backward constant.
field_pos_t robot_
current robot pos
~BiwardDriveModule()
Destruct your local values here.
This is the Forward drive-module, for forward only movements.
Configuration * config_
The fawkes configuration.
This is the base class which calculates drive modes.
This is the SlowBackward drive-module, for slow backward only movements.
void set_current_colli_mode(NavigatorInterface::OrientationMode orient, bool stop)
Set the colli mode values for each drive mode.
virtual void log_debug(const char *component, const char *format,...)=0
Log debug message.
float get_proposed_rot()
Returns the proposed rotatio.
void update()
Calculate here your desired settings.
float y
y coordinate in meters
Interface for configuration handling.
virtual float get_float(const char *path)=0
Get value from configuration which is of type float.
cart_coord_2d_t local_trajec_
local trajectory