Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122217266
L3.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jul 16, 17:52
Size
720 B
Mime Type
text/x-c
Expires
Fri, Jul 18, 17:52 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27451963
Attached To
R6622 liboncilla
L3.cpp
View Options
#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
Log In to Comment