63 this->
path.append(
"/");
67 if(boost::filesystem::exists((
path+
"gripperDataTrace").c_str())){
68 while(input !=
'y' && input !=
'n' && overwriteFiles ==
false){
69 std::cout <<
"Do you want to overwrite the existing files? [n/y]" << std::endl;
74 throw std::runtime_error(
"Will not overwrite files!");
79 boost::filesystem::path rootPath (this->
path);
81 if ( !boost::filesystem::exists(this->
path) ){
82 if ( !boost::filesystem::create_directory( rootPath ))
83 throw std::runtime_error(
"could not create folder: " + this->
path);
98 std::string parameterString;
102 file.open((
path+
"gripperDataTrace").c_str(), std::fstream::out | std::fstream::trunc);
105 today = second_clock::local_time();
107 file <<
"# Name: " << this->
name << std::endl;
109 file <<
"# Date: " << boost::posix_time::to_simple_string(today) << std::endl;
111 file <<
"# time [milliseconds]" 112 <<
" " << parameterName
186 std::string parameterString;
190 today = second_clock::local_time();
209 std::string executeString =
"cd ";
210 executeString.append(
path);
211 executeString.append(
"; gnuplot ../../GripperGnuPlotConfig");
213 std::system(executeString.c_str());
time_duration timeDuration
Actual position of one gripper bar.
JointRoundsPerMinuteSetpoint roundsPerMinuteSetpoint
virtual ~GripperDataTrace()
The lower threshold for the stallGuard2 value (see smart Energy current up step). ...
The current acceleration (read only).
unsigned long getTimeDurationMilliSec()
Hysteresis start setting. Please remark, that this value is an offset to the hysteresis end value...
virtual void getConfigurationParameter(MaxEncoderValue ¶meter) const
unsigned long timeDurationMicroSec
Standstill period before the current is changed down to standby current. The standard value is 200 (v...
Readout of the actual load value with used for stall detection (stallGuard2).
std::fstream parametersEndTraceFile
The most important motor setting, since too high values might cause motor damage! The maximum value i...
Acceleration parameter for velocity control and position control.
JointPWMSetpoint PWMSetpoint
JointEncoderSetpoint encoderSetpoint
The exponent of the scaling factor for the ramp generator- should be de/incremented carefully (in ste...
The current limit two seconds after the motor has stopped.
Motor stop in case of stall.
Determines the slope of the motor driver outputs. Set identical to slope control high side...
One bar of the youBot gripper.
std::fstream parametersBeginTraceFile
std::vector< YouBotGripperParameter * > parameterVector
void startTrace(const std::string parameterName, const std::string unit)
Sets the motor current which is used below the threshold speed.
YouBotGripperBar & gripperBar
Above this speed coolStep becomes enabled.
Should always be set 1 to ensure exact reaching of the target position. Do not change! ...
GripperDataTrace(YouBotGripperBar &youBotGripperBar, const std::string Name, const bool overwriteFiles=false)
The exponent of the scaling factor for the pulse (step) generator should be de/incremented carefully ...
void updateTrace(const double parameterValue)
The limit for acceleration (and deceleration). Changing this parameter requires re-calculation of the...
Selects the comparator blank time. This time needs to safely cover the switching event and the durati...
Actual velocity of one gripper bar.