soccer_pycontrol.path_section_short.PathSectionShort
- class soccer_pycontrol.path_section_short.PathSectionShort(start_transform: Transformation, end_transform: Transformation)[source]
Bases:
PathSection
A path section made up an initial rotation, followed by a linear path and a final rotatio
- __init__(start_transform: Transformation, end_transform: Transformation)[source]
Initializes the Path Section
- Parameters:
start_transform – Start Transform
end_transform – End Transform
torso_step_length – Length of a torso step
Methods
__init__
(start_transform, end_transform)Initializes the Path Section
How many steps are made for rotating on spot
duration
()The total time of the path section
getBodyStepPose
(step_num)getRatioFromStep
(step_num)Get the ratio of the Path Section :param step_num: :return: float ratio
Whether of not the robot is walking backwards
How many steps in the forward and backwards direction
poseAtRatio
(r)Get the pose of the torso between the ratio
Total number of torso steps
Attributes
How much to incrase the rotation angle when turning (for calibration purposes)
How much distance is a torso step (equivalent to a half step)
How many torso steps per second, approximately equivalent to foot steps per second
- angularStepCount()[source]
How many steps are made for rotating on spot
- Returns:
Number of steps in float, indicates half steps
- getRatioFromStep(step_num)[source]
Get the ratio of the Path Section :param step_num: :return: float ratio
- isWalkingBackwards()[source]
Whether of not the robot is walking backwards
- Returns:
True if backwards, else False
- linearStepCount() int
How many steps in the forward and backwards direction
- Returns:
Number of steps in float, indicates half steps
- poseAtRatio(r)[source]
Get the pose of the torso between the ratio
- Parameters:
r – float between [0, 1]
- Returns:
pose of the torso between the ratio
- scale_yaw
How much to incrase the rotation angle when turning (for calibration purposes)
- steps_per_second_default
How many torso steps per second, approximately equivalent to foot steps per second
- torso_step_length
How much distance is a torso step (equivalent to a half step)