Page MenuHomec4science

L3.cpp
No OneTemporary

File Metadata

Created
Sat, Jun 8, 20:51
#include "L3.h"
#include <liboncilla/exceptions/NotImplementedError.h>
using namespace std;
namespace rci {
namespace oncilla {
L3::L3(const std::string & name)
: rci::ResourceNode(name)
, rci::Sensing()
, rci::PositionSensing() {
this->_latestJointPosition = JointAngles::create(1,0.0);
}
L3::~L3() {
}
std::string L3::print() const {
ostringstream outstream(ostringstream::out);
outstream.precision(3); // Precision when printing double values
outstream << "<Oncilla Ankle>" << endl;
return outstream.str();
}
double L3::unsafeGetPosition() const{
return this->_latestJointPosition->asDouble(0);
}
void L3::unsafeUpdatePosition(double value){
this->_latestJointPosition->setValue(0,value);
}
}
}

Event Timeline