#include <CommandPathCutEntityDeplacements.h>
Public Member Functions | |
| CommandPathCutEntityDeplacements (vector< PathSegmentCommandDataType * > *paths) | |
| Constructs a CommandPathCutEntityDeplacements instance with a list of path segments. More... | |
| ~CommandPathCutEntityDeplacements () | |
Public Member Functions inherited from conscience_core::bridging::commands::CscCommand | |
| const CscCommandExecutionResult * | _execute (CscEnvironmentSimulator &environmentSimulator) |
| template<class TResult = CscCommandExecutionResult> | |
| const TResult * | execute (CscEnvironmentSimulator &environmentSimulator) |
| const CommandTypeId & | getTypeId () const |
| virtual | ~CscCommand () |
| void | setOriginalCommandString (string command) |
Static Public Attributes | |
| static const CommandTypeId | COMMAND_ID = "PATH_CUT_ENTITY_DEPLACEMENTS" |
Protected Attributes | |
| const double | WIDTH_OFFSET_IN_CENTIMETER = 25 |
| const double | LENGTH_END_OFFSET_FOR_PATH_IN_CENTIMETER = 40 |
| const double | LENGTH_START_OFFSET_FOR_IN_CENTIMETER = 10 |
| const double | LENGTH_OFFSET_FOR_TRANSITION_IN_CENTIMETER = 100 |
| const double | MIN_DISTANCE_FOR_SAME_POINT_IN_CM = 2 |
| const double | MAX_ANGLE_FOR_TRANSITION_IN_DEGREES = 20 |
| vector< PathSegmentCommandDataType * > * | paths |
| std::unique_ptr< CscLogger > | logger = CscLogger::getForCategory("CommandPathCutEntityDeplacements") |
Protected Attributes inherited from conscience_core::bridging::commands::CscCommand | |
| const CommandTypeId | typeId |
| optional< string > | originalCommandString = {} |
Additional Inherited Members | |
Public Types inherited from conscience_core::bridging::commands::CscCommand | |
| typedef function< void(CscCommand *command)> | CommandExecutedListener |
Static Public Member Functions inherited from conscience_core::bridging::commands::CscCommand | |
| static void | addCommandExecutedListener (CommandExecutedListener listener) |
Trims the input paths to remove segments where the robot passes over the same area again.
| conscience_core::bridging::commands::CommandPathCutEntityDeplacements::CommandPathCutEntityDeplacements | ( | vector< PathSegmentCommandDataType * > * | paths | ) |
Constructs a CommandPathCutEntityDeplacements instance with a list of path segments.
| paths | A pointer to a vector of pointers to PathSegmentCommandDataType objects. Each element represents a segment of the path along which the entity will be processed. |
| conscience_core::bridging::commands::CommandPathCutEntityDeplacements::~CommandPathCutEntityDeplacements | ( | ) |
|
protected |
This method tests whether both endpoints of the given path segment lie within the quadrilateral formed by the start and end points of the left and right boundary segments, with a tolerance (epsilon) to account for numerical imprecision.
|
protected |
|
overrideprotectedvirtual |
Implements conscience_core::bridging::commands::CscCommand.
|
protected |
|
overrideprotectedvirtual |
return entity reflexion if this command applies on an entityReflexion, otherwise return nullptr
Implements conscience_core::bridging::commands::CscCommand.
|
protected |
|
protected |
|
protected |
|
inlinestatic |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |