Conscience Core
CommandEntityLidarRelay.h
Go to the documentation of this file.
1 #ifndef CommandEntityLidarRelay_h
2 #define CommandEntityLidarRelay_h
3 
4 #include "CommandCommons.h"
5 
7 
9 public:
10  CommandEntityLidarRelayParams(const string &targetIpAddress, unsigned int targetPort, optional<double> periodMillis = {});
11 
13  unsigned targetPort;
14  double periodMillis;
15 };
16 
21 public:
22  inline static const CommandTypeId COMMAND_ID = "ENTITY_LIDAR_RELAY";
23 
25  ~CommandEntityLidarRelay() override;
26 
27 protected:
28  const CscCommandExecutionResultString *doExecute(CscEnvironmentSimulator &environmentSimulator) override;
29 
30  ptr<CscEntityReflexion> getEntityReflexion() const override;
31 
33  CommandEntityLidarRelayParams *params = nullptr;
34  std::unique_ptr<CscLogger> logger = CscLogger::getForCategory("CommandEntityLidarRelay");
35 };
36 
41 public:
42  inline static const CommandTypeId COMMAND_ID = "ENTITY_LIDAR_RELAY_STOP";
43 
44  CommandEntityLidarRelayStop(ptr<CscEntityReflexion> entityReflexion, const string &targetIpAddress, unsigned targetPort);
45 
46 protected:
47  const CscCommandExecutionResultString *doExecute(CscEnvironmentSimulator &environmentSimulator) override;
48 
49  ptr<CscEntityReflexion> getEntityReflexion() const override;
50 
53  unsigned targetPort;
54  std::unique_ptr<CscLogger> logger = CscLogger::getForCategory("CommandEntityLidarRelayStop");
55 };
56 
60 
61 }
62 
63 #endif
conscience_core::bridging::commands::CommandEntityLidarRelayStop::targetIpAddress
string targetIpAddress
Definition: CommandEntityLidarRelay.h:52
conscience_core::bridging::commands::CommandEntityLidarRelayStop
Definition: CommandEntityLidarRelay.h:40
CSC_DLL_IMPORTEXPORT
#define CSC_DLL_IMPORTEXPORT
Definition: os.h:34
conscience_core::bridging::commands::CommandEntityLidarRelayParams
Definition: CommandEntityLidarRelay.h:8
conscience_core::bridging::commands::CommandTypeId
string CommandTypeId
Definition: Command.h:29
conscience_core::bridging::commands::CommandEntityLidarRelayParams::targetPort
unsigned targetPort
Definition: CommandEntityLidarRelay.h:13
conscience_core::bridging::commands::result::CscCommandExecutionResultString
Definition: CommandExecutionResultString.h:11
conscience_core::bridging::commands
Definition: cartographyCommands.cpp:4
conscience_core::bridging::commands::CscCommand
Definition: Command.h:40
conscience_core::bridging::commands::CommandEntityLidarRelayStop::targetPort
unsigned targetPort
Definition: CommandEntityLidarRelay.h:53
conscience_core::bridging::commands::environment_objects::optional< double >
const ptr< CscObjectModel > const string const CscPoint3d const CscPoint3d optional< double >
Definition: environmentObjectsCommands.h:367
conscience_core::bridging::commands::CommandEntityLidarRelay::entityReflexion
ptr< CscEntityReflexion > entityReflexion
Definition: CommandEntityLidarRelay.h:32
COMMAND_TYPE_BUILDER
#define COMMAND_TYPE_BUILDER(PREFIX, COMMAND_REGISTER_className,...)
Definition: CscCommandAutoParse.h:515
conscience_core::bridging::commands::CommandEntityLidarRelayParams::targetIpAddress
string targetIpAddress
Definition: CommandEntityLidarRelay.h:12
CscEnvironmentSimulator
Definition: CscEnvironmentSimulator.h:31
conscience_core::bridging::commands::COMMAND_REGISTER
COMMAND_REGISTER(CommandFollowKinematicTrajectory, ptr< CscEntityReflexion >, int, const CscState *, string, string, string, string, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float)
CommandCommons.h
conscience_core::bridging::commands::logger
std::unique_ptr< CscLogger > logger
Definition: Command.cpp:7
conscience_core::bridging::commands::CommandEntityLidarRelayStop::entityReflexion
ptr< CscEntityReflexion > entityReflexion
Definition: CommandEntityLidarRelay.h:51
conscience_core::bridging::commands::CommandEntityLidarRelay
Definition: CommandEntityLidarRelay.h:20
ptr
std::shared_ptr< T > ptr
Definition: CscCommon.h:29
conscience_core::bridging::commands::CommandEntityLidarRelayParams::periodMillis
double periodMillis
Definition: CommandEntityLidarRelay.h:14