-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathptpAxisMovementStatement.cpp
More file actions
40 lines (29 loc) · 1.02 KB
/
ptpAxisMovementStatement.cpp
File metadata and controls
40 lines (29 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "ptpAxisMovementStatement.h"
#include "iostream"
ptpAxisMovementStatement::ptpAxisMovementStatement(double A1Value, double A2Value, double A3Value, double A4Value)
{
type = "ptpAxisMovementStatement";
parameters["A1"] = A1Value;
parameters["A2"] = A2Value;
parameters["A3"] = A3Value;
parameters["A4"] = A4Value;
}
void ptpAxisMovementStatement::setParameters(double A1Value, double A2Value, double A3Value, double A4Value)
{
parameters["A1"] = A1Value;
parameters["A2"] = A2Value;
parameters["A3"] = A3Value;
parameters["A4"] = A4Value;
}
std::map<std::string, double> ptpAxisMovementStatement::getParameters(){
return parameters;
}
void ptpAxisMovementStatement::printParameters(){
std::map<std::string, double>::iterator itr;
for(itr=parameters.begin(); itr != parameters.end(); itr++)
std::cout<<"the value of parameter"<<itr->first<<" is "<<itr->second<<std::endl;
}
void ptpAxisMovementStatement::executeStatement()
{
//execute ptp-axis movement statement
}