#include <environmentPlacesCommands.h>
Public Member Functions | |
| CommandPlaceInsert (ptr< const CscPlaceModel > placeModel, optional< ptr< CscPoint3d >> position, optional< ptr< CscPoint3d >> rotation, optional< bool > removeOtherPlaces) | |
| ~CommandPlaceInsert () override | |
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 = "PLACE_INSERT" |
Protected Member Functions | |
| const CscCommandExecutionResultString * | doExecute (CscEnvironmentSimulator &environmentSimulator) override |
| ptr< CscEntityReflexion > | getEntityReflexion () const override |
Protected Member Functions inherited from conscience_core::bridging::commands::CscCommand | |
| CscCommand (const CommandTypeId &typeId) | |
| const CscCommandExecutionResultNone * | resultNone () |
| const CscCommandExecutionResultSequence * | resultSequence (CscSequence *sequence, const string &entitySerialNumber, bool doNotPlay=false) |
| const CscCommandExecutionResultFile * | resultFile (const fs::path &resultingFilePath) |
| template<class TResult > | |
| const CscCommandExecutionResultObject< TResult > * | resultObject (TResult *result) |
| const CscWorldElementId | getEntityId () const |
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) |
Protected Attributes inherited from conscience_core::bridging::commands::CscCommand | |
| const CommandTypeId | typeId |
| optional< string > | originalCommandString = {} |
Insert a place in the environment
Returns id of the inserted place
| conscience_core::bridging::commands::environment_places::CommandPlaceInsert::CommandPlaceInsert | ( | ptr< const CscPlaceModel > | placeModel, |
| optional< ptr< CscPoint3d >> | position, | ||
| optional< ptr< CscPoint3d >> | rotation, | ||
| optional< bool > | removeOtherPlaces | ||
| ) |
Sets the parameters for inserting an object. It is possible to provide rotation, mass in grams, and a type of physics (0 => BOUNDING_BOX, 1 => CONCAVE, 2 => CONVEX, 3 => FROM_MODEL, 4 => GHOST, 5 => STATIC). It is possible to specify a member of an entity in the simulation to load the object from the robot's position, in which case the provided position becomes relative to the robot's position. In the case of a relative position, the serial number of the entity in the simulator must be provided.
|
override |
|
overrideprotectedvirtual |
Implements conscience_core::bridging::commands::CscCommand.
|
overrideprotectedvirtual |
return entity reflexion if this command applies on an entityReflexion, otherwise return nullptr
Implements conscience_core::bridging::commands::CscCommand.
|
inlinestatic |