Go to the documentation of this file.
30 #include <netinet/in.h>
34 #include <RobotAPI/interface/units/ATINetFTUnit.h>
35 #include <RobotAPI/interface/units/UnitInterface.h>
48 defineOptionalProperty<std::string>(
51 "ATINetFT host name and port, usually i61ATINetFT1:801 or i61ATINetFT2:801");
52 defineOptionalProperty<std::string>(
53 "DatabasePathName",
"",
"Path name to motion database on receiving ATINetFT host");
54 defineOptionalProperty<std::string>(
55 "CaptureName",
"Trial01",
"Custom name of first trial in motion recording session");
56 defineOptionalProperty<std::string>(
57 "ATINetFTReceiveHostName",
59 "ATINetFT host name and port, usually i61ATINetFT1:801 or i61ATINetFT2:801");
60 defineOptionalProperty<float>(
63 "Offset along x axis from VirtualRobot origin to ATINetFT reference marker");
64 defineOptionalProperty<float>(
67 "Offset along y axis from VirtualRobot origin to ATINetFT reference marker");
68 defineOptionalProperty<float>(
71 "Offset along z axis from VirtualRobot origin to ATINetFT reference marker");
92 return "ATINetFTUnit";
95 void startRecording(
const std::string& customName,
const Ice::Current&
c)
override;
103 return remoteTriggerEnabled;
114 init(
const Ice::Current&
c)
override
124 stop(
const Ice::Current&
c)
override
128 armarx::UnitExecutionState
131 return armarx::eUndefinedUnitExecutionState;
168 void establishATINetFTReceiveHostConnection(std::string receiverHostName);
169 bool sendPacket(
char* bytePacket,
int bpSize);
170 bool receivePacket(
char* bytePacket);
171 void convertToFTValues(
char* receiveBuf,
float* ftdata,
int ftdataSize);
172 void writeFTValuesToFile(
float* ftdata,
int ftdataSize);
174 std::ofstream recordingFile;
176 bool remoteTriggerEnabled;
177 bool recordingStarted;
178 bool recordingStopped;
179 bool recordingCompleted;
184 int receivePacketSize;
190 std::string captureNamePrefix;
191 std::string databasePathName;
192 struct sockaddr_in receiveHostAddr;
193 struct sockaddr_in senderHostAddr;
void startRecording(const std::string &customName, const Ice::Current &c) override
void start(const Ice::Current &c) override
void release(const Ice::Current &c) override
PropertyDefinitionsPtr createPropertyDefinitions() override
void onInitComponent() override
void onDisconnectComponent() override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
void onExitComponent() override
armarx::UnitExecutionState getExecutionState(const Ice::Current &c) override
ArmarX wrapper of the ATINetFT DataStream SDK.
bool isComponentOnline(const Ice::Current &c) override
void onConnectComponent() override
Baseclass for all ArmarX ManagedIceObjects requiring properties.
void stopRecording(const Ice::Current &c) override
ATINetFTUnitPropertyDefinitions(std::string prefix)
std::string getDefaultName() const override
Default component property definition container.
void init(const Ice::Current &c) override
void stop(const Ice::Current &c) override
void request(const Ice::Current &c) override
This file offers overloads of toIce() and fromIce() functions for STL container types.