#include <DrawingMethods.h>
Static Public Member Functions | |
static void | paintFieldLines (DebugDrawing &fieldLinesDrawing) |
static void | paintFieldPolygons (DebugDrawing &fieldPolygonsDrawing, Player::teamColor ownColor) |
static void | paintSpecialPerceptForImageView (DebugDrawing &perceptsDrawing, const SpecialPercept &specialPercept, const CameraMatrix &cameraMatrix) |
static void | paintBallPerceptForImageView (DebugDrawing &perceptsDrawing, const BallPercept &ballPercept, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo) |
static void | paintLandmarksPerceptForImageView (DebugDrawing &perceptsDrawing, const LandmarksPercept &landmarksPercept, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo) |
static void | paintLinesPerceptForImageView (DebugDrawing &perceptsDrawing, const LinesPercept &linesPercept, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo) |
static void | paintEdgesPerceptForImageView (DebugDrawing &perceptsDrawing, const EdgesPercept &edgesPercept, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo) |
static void | paintObstaclesPerceptForImageView (DebugDrawing &perceptsDrawing, const ObstaclesPercept &obstaclesPercept, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo) |
static void | paintFreePartOfGoalPerceptForImageView (DebugDrawing &perceptsDrawing, const ObstaclesPercept &obstaclesPercept, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo) |
static void | paintObstaclesModelForImageView (DebugDrawing &obstaclesDrawing, const ObstaclesModel &obstaclesModel, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo) |
static void | paintFreePartOfGoalModelForImageView (DebugDrawing &freePartOfGoalDrawing, const ObstaclesModel &obstaclesModel, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo) |
static void | paintPSDPerceptForImageView (DebugDrawing &perceptsDrawing, const PSDPercept &psdPercept, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo) |
static void | paintPerceptCollectionForRadarView (DebugDrawing &perceptsDrawing, const LandmarksPercept &landmarksPercept, const BallPercept &ballPercept, const PlayersPercept &playersPercept, const ObstaclesPercept &obstaclesPercept, const LinesPercept &linesPercept, const EdgesPercept &edgesPercept) |
static void | paintPerceptCollectionForFieldView (DebugDrawing &perceptsDrawing, const LandmarksPercept &landmarksPercept, const BallPercept &ballPercept, const PlayersPercept &playersPercept, const ObstaclesPercept &obstaclesPercept, const LinesPercept &linesPercept, const EdgesPercept &edgesPercept, const RobotPose &origin, const Player::teamColor teamColor) |
static void | paintPlayersPerceptForFieldView (DebugDrawing &playersDrawing, const PlayersPercept &playersPercept, const Pose2D &origin) |
static void | paintBallPerceptForFieldView (DebugDrawing &ballDrawing, const BallPercept &ballPercept, const Pose2D &origin) |
static void | paintLinesPerceptForFieldView (DebugDrawing &linesDrawing, const LinesPercept &linesPercept, const Pose2D &origin) |
static void | paintEdgesPerceptForFieldView (DebugDrawing &linesDrawing, const EdgesPercept &edgesPercept, const Pose2D &origin) |
static void | paintObstaclesPerceptForFieldView (DebugDrawing &obstaclesDrawing, const ObstaclesPercept &obstaclesPercept, const Pose2D &origin) |
static void | paintObstaclesModelForFieldView (DebugDrawing &obstaclesDrawing, const ObstaclesModel &obstaclesModel, const Pose2D &origin) |
static void | paintCollisionPerceptForFieldView (DebugDrawing &collisionPerceptDrawing, const CollisionPercept &collisionPercept, const Pose2D &origin) |
static void | paintObstaclesModelForRadarView (DebugDrawing &obstaclesDrawing, const ObstaclesModel &obstaclesModel) |
static void | paintLandmarksPerceptForFieldView (DebugDrawing &landmarksDrawing, const LandmarksPercept &landmarksPercept, const Pose2D &origin) |
static void | paintWorldState (DebugDrawing &debugDrawing, const RobotPose &robotPose, const BallModel &ballModel, const PlayerPoseCollection &playerPoseCollection, Player::teamColor ownColor, unsigned long timestamp, bool oracled=false) |
static void | paintAngleBoundaryToImage (DebugDrawing &perceptsDrawing, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo, const ConditionalBoundary boundary) |
static void | paintSpecialPerceptForFieldView (DebugDrawing &specialPerceptDrawing, const SpecialPercept &specialPercept, const RobotPose &origin, Player::teamColor teamColor) |
Static Private Member Functions | |
static void | drawRobot (DebugDrawing &debugDrawing, Pose2D pose, const DebugDrawing::Color &color, const DebugDrawing::Color &headColor) |
Definition at line 33 of file DrawingMethods.h.
void DrawingMethods::drawRobot | ( | DebugDrawing & | debugDrawing, | |
Pose2D | pose, | |||
const DebugDrawing::Color & | color, | |||
const DebugDrawing::Color & | headColor | |||
) | [static, private] |
Paints a robot to a debug drawing.
Definition at line 708 of file DrawingMethods.cpp.
References Drawings::bs_solid, int(), DebugDrawing::polygon(), and Drawings::ps_solid.
Referenced by paintWorldState().
void DrawingMethods::paintAngleBoundaryToImage | ( | DebugDrawing & | perceptsDrawing, | |
const CameraMatrix & | cameraMatrix, | |||
const CameraInfo & | cameraInfo, | |||
const ConditionalBoundary | boundary | |||
) | [static] |
Definition at line 1089 of file DrawingMethods.cpp.
References Geometry::calculatePointByAngles(), DebugDrawing::line(), Range< T >::max, Range< T >::min, Drawings::ps_solid, Boundary< T >::x, and Boundary< T >::y.
void DrawingMethods::paintBallPerceptForFieldView | ( | DebugDrawing & | ballDrawing, | |
const BallPercept & | ballPercept, | |||
const Pose2D & | origin | |||
) | [static] |
Paints a BallPercept to a debug drawing
Definition at line 439 of file DrawingMethods.cpp.
References BallPercept::ballWasSeen, Drawings::bs_null, DebugDrawing::circle(), BallPercept::getOffsetBearingBased(), BallPercept::getOffsetSizeBased(), DebugDrawing::line(), Drawings::ps_solid, Pose2D::translation, Vector2< V >::x, and Vector2< V >::y.
void DrawingMethods::paintBallPerceptForImageView | ( | DebugDrawing & | perceptsDrawing, | |
const BallPercept & | ballPercept, | |||
const CameraMatrix & | cameraMatrix, | |||
const CameraInfo & | cameraInfo | |||
) | [static] |
Paints a BallPercept to an image drawing
Definition at line 1159 of file DrawingMethods.cpp.
References Geometry::angleSizeToPixelSize(), BallPercept::anglesToCenter, BallPercept::ballRadiusAsAngle, BallPercept::ballWasSeen, Drawings::black, Drawings::bs_null, Geometry::calculatePointByAngles(), Geometry::Circle::center, DebugDrawing::circle(), DebugDrawing::dot(), Drawings::ps_solid, Geometry::Circle::radius, Drawings::white, Vector2< V >::x, and Vector2< V >::y.
Referenced by DebugDrawingManagerMessageHandler::handleMessage(), and RobotConsole::handleMessage().
void DrawingMethods::paintCollisionPerceptForFieldView | ( | DebugDrawing & | collisionPerceptDrawing, | |
const CollisionPercept & | collisionPercept, | |||
const Pose2D & | origin | |||
) | [static] |
Paints a CollisionPercept to a debug drawing for the field view
Definition at line 1034 of file DrawingMethods.cpp.
References CollisionPercept::getCollisionFrontLeft(), CollisionPercept::getCollisionFrontRight(), CollisionPercept::getCollisionHead(), CollisionPercept::getCollisionHindLeft(), CollisionPercept::getCollisionHindRight(), Drawings::gray, DebugDrawing::largeDot(), Drawings::red, Vector2< V >::x, and Vector2< V >::y.
void DrawingMethods::paintEdgesPerceptForFieldView | ( | DebugDrawing & | linesDrawing, | |
const EdgesPercept & | edgesPercept, | |||
const Pose2D & | origin | |||
) | [static] |
Paints a EdgesPercept to a debug drawing
Definition at line 779 of file DrawingMethods.cpp.
References Drawings::blue, EdgesPercept::edges, Drawings::gray, Drawings::green, DebugDrawing::line(), EdgesPercept::numberOfEdges, Drawings::orange, Drawings::ps_solid, Drawings::red, Drawings::skyblue, Vector2< V >::x, Vector2< V >::y, and Drawings::yellow.
void DrawingMethods::paintEdgesPerceptForImageView | ( | DebugDrawing & | perceptsDrawing, | |
const EdgesPercept & | edgesPercept, | |||
const CameraMatrix & | cameraMatrix, | |||
const CameraInfo & | cameraInfo | |||
) | [static] |
Paints a EdgesPercept to an image drawing
Definition at line 1391 of file DrawingMethods.cpp.
References Drawings::blue, Geometry::calculatePointInImage(), EdgesPercept::edges, Drawings::gray, Drawings::green, DebugDrawing::line(), EdgesPercept::numberOfEdges, Drawings::orange, Drawings::ps_solid, Drawings::red, Drawings::skyblue, Drawings::white, white, Vector2< V >::x, Vector2< V >::y, and Drawings::yellow.
Referenced by DebugDrawingManagerMessageHandler::handleMessage().
void DrawingMethods::paintFieldLines | ( | DebugDrawing & | fieldLinesDrawing | ) | [static] |
Paints the field lines to a debug drawing. One unit is one millimeter.
Definition at line 130 of file DrawingMethods.cpp.
References Drawings::bs_null, DebugDrawing::ellipse(), Drawings::gray, DebugDrawing::largeDot(), DebugDrawing::line(), Drawings::ps_solid, and Drawings::red.
Referenced by DebugDrawingManager::DebugDrawingManager(), and FieldView::draw().
void DrawingMethods::paintFieldPolygons | ( | DebugDrawing & | fieldPolygonsDrawing, | |
Player::teamColor | ownColor | |||
) | [static] |
Paints the field to a debug drawing. The lawn is green, the goals are yellow and blue. One unit is one millimeter.
Definition at line 22 of file DrawingMethods.cpp.
References Player::blue, Drawings::bs_solid, DebugDrawing::polygon(), Drawings::ps_solid, DebugDrawing::rectangle(), Vector2< V >::x, and Vector2< V >::y.
Referenced by DebugDrawingManager::DebugDrawingManager(), and FieldView::draw().
void DrawingMethods::paintFreePartOfGoalModelForImageView | ( | DebugDrawing & | freePartOfGoalDrawing, | |
const ObstaclesModel & | obstaclesModel, | |||
const CameraMatrix & | cameraMatrix, | |||
const CameraInfo & | cameraInfo | |||
) | [static] |
Paints the "free part of goal" model to an image drawing
Definition at line 1565 of file DrawingMethods.cpp.
References ObstaclesModel::angleToFreePartOfGoal, ObstaclesModel::angleToFreePartOfGoalWasDetermined, Geometry::calculateAnglesForPoint(), Geometry::calculatePointInImage(), ObstaclesModel::distanceToFreePartOfGoal, DebugDrawing::line(), normalize(), CameraInfo::openingAngleWidth, Drawings::ps_solid, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, ObstaclesModel::widthOfFreePartOfGoal, and Vector2< V >::x.
Referenced by DebugDrawingManagerMessageHandler::handleMessage().
void DrawingMethods::paintFreePartOfGoalPerceptForImageView | ( | DebugDrawing & | perceptsDrawing, | |
const ObstaclesPercept & | obstaclesPercept, | |||
const CameraMatrix & | cameraMatrix, | |||
const CameraInfo & | cameraInfo | |||
) | [static] |
Paints the "free part of goal" percept to an image drawing
Definition at line 1461 of file DrawingMethods.cpp.
References ObstaclesPercept::angleToFreePartOfGoal, ObstaclesPercept::angleToFreePartOfGoalWasDetermined, Geometry::calculatePointInImage(), ObstaclesPercept::distanceToFreePartOfGoal, Drawings::green, DebugDrawing::line(), Drawings::ps_solid, Drawings::red, and ObstaclesPercept::widthOfFreePartOfGoal.
Referenced by DebugDrawingManagerMessageHandler::handleMessage(), and RobotConsole::handleMessage().
void DrawingMethods::paintLandmarksPerceptForFieldView | ( | DebugDrawing & | landmarksDrawing, | |
const LandmarksPercept & | landmarksPercept, | |||
const Pose2D & | origin | |||
) | [static] |
Paints a LandmarksPercept to a debug drawing
Definition at line 471 of file DrawingMethods.cpp.
References Drawings::bs_null, Drawings::bs_solid, DebugDrawing::circle(), ColorClasses::colorClassToRGB(), LandmarksPercept::flags, LandmarksPercept::goals, DebugDrawing::line(), LandmarksPercept::numberOfFlags, LandmarksPercept::numberOfGoals, Drawings::ps_dash, Drawings::ps_solid, Pose2D::rotation, Pose2D::translation, Vector2< V >::x, Boundary< T >::x, and Vector2< V >::y.
void DrawingMethods::paintLandmarksPerceptForImageView | ( | DebugDrawing & | perceptsDrawing, | |
const LandmarksPercept & | landmarksPercept, | |||
const CameraMatrix & | cameraMatrix, | |||
const CameraInfo & | cameraInfo | |||
) | [static] |
Paints a LandmarksPercept to an image drawing
Definition at line 1187 of file DrawingMethods.cpp.
References Geometry::calculatePointByAngles(), LandmarksPercept::flags, LandmarksPercept::goals, DebugDrawing::line(), LandmarksPercept::numberOfFlags, LandmarksPercept::numberOfGoals, Flag::pinkAboveSkyblue, Flag::pinkAboveYellow, Drawings::ps_solid, skyblue, Flag::skyblueAbovePink, yellow, and Flag::yellowAbovePink.
Referenced by DebugDrawingManagerMessageHandler::handleMessage(), and RobotConsole::handleMessage().
void DrawingMethods::paintLinesPerceptForFieldView | ( | DebugDrawing & | linesDrawing, | |
const LinesPercept & | linesPercept, | |||
const Pose2D & | origin | |||
) | [static] |
Paints a LinesPercept to a debug drawing
Definition at line 733 of file DrawingMethods.cpp.
References DebugDrawing::arrow(), Drawings::blue, Drawings::bs_solid, DebugDrawing::circle(), Drawings::gray, Drawings::green, LinesPercept::numberOfPoints, LinesPercept::numberOfTypes, Drawings::orange, LinesPercept::points, Drawings::ps_solid, Drawings::red, Drawings::skyblue, LinesPercept::UNDEF, and Drawings::yellow.
void DrawingMethods::paintLinesPerceptForImageView | ( | DebugDrawing & | perceptsDrawing, | |
const LinesPercept & | linesPercept, | |||
const CameraMatrix & | cameraMatrix, | |||
const CameraInfo & | cameraInfo | |||
) | [static] |
Paints a LinesPercept to an image drawing
Definition at line 1335 of file DrawingMethods.cpp.
References Vector2< V >::abs(), DebugDrawing::arrow(), Drawings::black, Drawings::blue, Drawings::bs_solid, Geometry::calculatePointInImage(), DebugDrawing::circle(), Drawings::gray, Drawings::green, LinesPercept::numberOfPoints, LinesPercept::numberOfTypes, Drawings::orange, pi_2, LinesPercept::points, Drawings::ps_solid, Drawings::red, Drawings::skyblue, LinesPercept::UNDEF, Drawings::white, white, Vector2< V >::x, Vector2< V >::y, and Drawings::yellow.
Referenced by DebugDrawingManagerMessageHandler::handleMessage(), and RobotConsole::handleMessage().
void DrawingMethods::paintObstaclesModelForFieldView | ( | DebugDrawing & | obstaclesDrawing, | |
const ObstaclesModel & | obstaclesModel, | |||
const Pose2D & | origin | |||
) | [static] |
Paints a ObstaclesModel to a debug drawing for the field view
Definition at line 881 of file DrawingMethods.cpp.
References ObstaclesModel::angleToFreePartOfGoal, ObstaclesModel::angleToFreePartOfGoalWasDetermined, Drawings::black, Drawings::blue, ObstaclesPercept::border, ObstaclesModel::distance, ObstaclesModel::distanceToFreePartOfGoal, ObstaclesModel::getAngleOfSector(), ObstaclesPercept::goal, Drawings::green, Drawings::light_gray, DebugDrawing::line(), ObstaclesModel::numOfSectors, ObstaclesModel::obstacleType, ObstaclesPercept::opponent, pi, Drawings::ps_solid, Drawings::red, ObstaclesPercept::teammate, Pose2D::translation, ObstaclesPercept::unknown, ObstaclesModel::widthOfFreePartOfGoal, Vector2< V >::x, and Vector2< V >::y.
Referenced by DebugDrawingManagerMessageHandler::handleMessage(), and RobotConsole::handleMessage().
void DrawingMethods::paintObstaclesModelForImageView | ( | DebugDrawing & | obstaclesDrawing, | |
const ObstaclesModel & | obstaclesModel, | |||
const CameraMatrix & | cameraMatrix, | |||
const CameraInfo & | cameraInfo | |||
) | [static] |
Paints a ObstaclesModel to an image drawing
Definition at line 1497 of file DrawingMethods.cpp.
References Drawings::black, Drawings::blue, ObstaclesPercept::border, Geometry::calculateAnglesForPoint(), Geometry::calculatePointInImage(), ObstaclesModel::distance, ObstaclesModel::getAngleOfSector(), ObstaclesPercept::goal, Drawings::gray, Drawings::green, int(), DebugDrawing::line(), normalize(), ObstaclesModel::numOfSectors, ObstaclesModel::obstacleType, CameraInfo::openingAngleWidth, ObstaclesPercept::opponent, Drawings::ps_solid, Drawings::red, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, ObstaclesPercept::teammate, ObstaclesPercept::unknown, Vector2< V >::x, and Vector2< V >::y.
Referenced by DebugDrawingManagerMessageHandler::handleMessage(), and RobotConsole::handleMessage().
void DrawingMethods::paintObstaclesModelForRadarView | ( | DebugDrawing & | obstaclesDrawing, | |
const ObstaclesModel & | obstaclesModel | |||
) | [static] |
Paints a ObstaclesModel to a debug drawing for the radar view
Definition at line 1081 of file DrawingMethods.cpp.
Referenced by DebugDrawingManagerMessageHandler::handleMessage().
void DrawingMethods::paintObstaclesPerceptForFieldView | ( | DebugDrawing & | obstaclesDrawing, | |
const ObstaclesPercept & | obstaclesPercept, | |||
const Pose2D & | origin | |||
) | [static] |
Paints a ObstaclesPercept to a debug drawing
Definition at line 809 of file DrawingMethods.cpp.
References ObstaclesPercept::angleToFreePartOfGoal, ObstaclesPercept::angleToFreePartOfGoalWasDetermined, Drawings::black, Drawings::blue, ObstaclesPercept::border, Drawings::bs_solid, DebugDrawing::circle(), ObstaclesPercept::distanceToFreePartOfGoal, ObstaclesPercept::farPointIsOnImageBorder, ObstaclesPercept::farPoints, ObstaclesPercept::goal, Drawings::green, Drawings::light_gray, DebugDrawing::line(), ObstaclesPercept::nearPoints, ObstaclesPercept::numberOfPoints, ObstaclesPercept::obstacleType, ObstaclesPercept::opponent, Drawings::ps_solid, Drawings::red, ObstaclesPercept::teammate, Pose2D::translation, ObstaclesPercept::unknown, ObstaclesPercept::widthOfFreePartOfGoal, Vector2< V >::x, and Vector2< V >::y.
void DrawingMethods::paintObstaclesPerceptForImageView | ( | DebugDrawing & | perceptsDrawing, | |
const ObstaclesPercept & | obstaclesPercept, | |||
const CameraMatrix & | cameraMatrix, | |||
const CameraInfo & | cameraInfo | |||
) | [static] |
Paints an ObstaclesPercept to an image drawing
Definition at line 1431 of file DrawingMethods.cpp.
References Drawings::black, Drawings::blue, ObstaclesPercept::border, Drawings::bs_solid, Geometry::calculatePointInImage(), DebugDrawing::circle(), DebugDrawing::dot(), ObstaclesPercept::farPointIsOnImageBorder, ObstaclesPercept::farPoints, ObstaclesPercept::goal, Drawings::gray, Drawings::green, DebugDrawing::line(), ObstaclesPercept::nearPoints, ObstaclesPercept::numberOfPoints, ObstaclesPercept::obstacleType, ObstaclesPercept::opponent, Drawings::ps_solid, Drawings::red, ObstaclesPercept::teammate, ObstaclesPercept::unknown, Vector2< V >::x, and Vector2< V >::y.
Referenced by DebugDrawingManagerMessageHandler::handleMessage(), and RobotConsole::handleMessage().
void DrawingMethods::paintPerceptCollectionForFieldView | ( | DebugDrawing & | perceptsDrawing, | |
const LandmarksPercept & | landmarksPercept, | |||
const BallPercept & | ballPercept, | |||
const PlayersPercept & | playersPercept, | |||
const ObstaclesPercept & | obstaclesPercept, | |||
const LinesPercept & | linesPercept, | |||
const EdgesPercept & | edgesPercept, | |||
const RobotPose & | origin, | |||
const Player::teamColor | teamColor | |||
) | [static] |
Paints a percept collection to a debug drawing for the field view
Definition at line 411 of file DrawingMethods.cpp.
Referenced by DebugDrawingManagerMessageHandler::handleMessage(), and RobotConsole::handleMessage().
void DrawingMethods::paintPerceptCollectionForRadarView | ( | DebugDrawing & | perceptsDrawing, | |
const LandmarksPercept & | landmarksPercept, | |||
const BallPercept & | ballPercept, | |||
const PlayersPercept & | playersPercept, | |||
const ObstaclesPercept & | obstaclesPercept, | |||
const LinesPercept & | linesPercept, | |||
const EdgesPercept & | edgesPercept | |||
) | [static] |
Paints a percept collection to a debug drawing for the radar viewer
Definition at line 382 of file DrawingMethods.cpp.
References Player::blue, Drawings::bs_solid, DebugDrawing::circle(), Drawings::ps_solid, Pose2D::translation, Vector2< V >::x, and Vector2< V >::y.
Referenced by DebugDrawingManagerMessageHandler::handleMessage(), and RobotConsole::handleMessage().
void DrawingMethods::paintPlayersPerceptForFieldView | ( | DebugDrawing & | playersDrawing, | |
const PlayersPercept & | playersPercept, | |||
const Pose2D & | origin | |||
) | [static] |
Paints a Playerspercept to a debug drawing
Definition at line 578 of file DrawingMethods.cpp.
References PlayersPercept::bluePlayers, DebugDrawing::line(), PlayersPercept::numberOfBluePlayers, PlayersPercept::numberOfRedPlayers, SinglePlayerPercept::offset, Drawings::ps_solid, PlayersPercept::redPlayers, Pose2D::translation, Vector2< V >::x, and Vector2< V >::y.
void DrawingMethods::paintPSDPerceptForImageView | ( | DebugDrawing & | perceptsDrawing, | |
const PSDPercept & | psdPercept, | |||
const CameraMatrix & | cameraMatrix, | |||
const CameraInfo & | cameraInfo | |||
) | [static] |
Paints a PSDPercept to an image drawing
Definition at line 1633 of file DrawingMethods.cpp.
References Drawings::black, Drawings::blue, Drawings::bs_solid, DebugDrawing::circle(), Drawings::gray, gray, Drawings::green, int(), RotationMatrix::invert(), DebugDrawing::line(), PSDPercept::numOfPercepts, CameraInfo::openingAngleWidth, Drawings::ps_solid, Drawings::red, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, Pose3D::rotation, Pose3D::translation, white, Drawings::white, Vector3< V >::x, Vector3< V >::y, and Vector3< V >::z.
Referenced by DebugDrawingManagerMessageHandler::handleMessage(), and RobotConsole::handleMessage().
void DrawingMethods::paintSpecialPerceptForFieldView | ( | DebugDrawing & | specialPerceptDrawing, | |
const SpecialPercept & | specialPercept, | |||
const RobotPose & | origin, | |||
Player::teamColor | teamColor | |||
) | [static] |
Paints a special percept to a debug drawing for the field view
Definition at line 1701 of file DrawingMethods.cpp.
Referenced by DebugDrawingManagerMessageHandler::handleMessage(), and RobotConsole::handleMessage().
void DrawingMethods::paintSpecialPerceptForImageView | ( | DebugDrawing & | perceptsDrawing, | |
const SpecialPercept & | specialPercept, | |||
const CameraMatrix & | cameraMatrix | |||
) | [static] |
Paints the special percept to a debug drawing for the image viewer
Definition at line 1142 of file DrawingMethods.cpp.
Referenced by DebugDrawingManagerMessageHandler::handleMessage(), and RobotConsole::handleMessage().
void DrawingMethods::paintWorldState | ( | DebugDrawing & | debugDrawing, | |
const RobotPose & | robotPose, | |||
const BallModel & | ballModel, | |||
const PlayerPoseCollection & | playerPoseCollection, | |||
Player::teamColor | ownColor, | |||
unsigned long | timestamp, | |||
bool | oracled = false | |||
) | [static] |
Paints a world state to a debug drawing.
Definition at line 628 of file DrawingMethods.cpp.
References Player::blue, Drawings::bs_solid, DebugDrawing::circle(), BallModel::communicated, drawRobot(), RobotPose::getPose(), DebugDrawing::line(), Drawings::ps_dash, Drawings::ps_dot, Drawings::ps_solid, Player::red, BallModel::seen, CommunicatedBallPosition::timeWhenLastObserved, SeenBallPosition::timeWhenLastSeen, Pose2D::translation, Vector2< V >::x, and Vector2< V >::y.
Referenced by DebugDrawingManagerMessageHandler::handleMessage(), and RobotConsole::handleMessage().