Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91607528
OncillaL3.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
Tue, Nov 12, 16:13
Size
831 B
Mime Type
text/x-c
Expires
Thu, Nov 14, 16:13 (2 d)
Engine
blob
Format
Raw Data
Handle
22292195
Attached To
R6622 liboncilla
OncillaL3.cpp
View Options
#include "OncillaL3.h"
using namespace std;
namespace rci {
namespace oncilla {
OncillaL3::OncillaL3(const std::string & name)
: rci::ResourceNode(name)
, rci::Sensing()
, rci::PositionSensing() {
this->_latestJointPosition = JointAngles::create(1,0.0);
}
JointAnglesPtr OncillaL3::getJointPosition() const {
throw std::runtime_error("Not yet implemented.");
}
OncillaL3::~OncillaL3() {
}
std::string OncillaL3::print() const {
ostringstream outstream(ostringstream::out);
outstream.precision(3); // Precision when printing double values
outstream << "<Oncilla Ankle>" << endl;
return outstream.str();
}
double OncillaL3::getRawLocalPosition() const{
return this->_latestJointPosition->asDouble(0);
}
void OncillaL3::updateRawLocalPosition(double value){
this->_latestJointPosition->setValue(0,value);
}
}
}
Event Timeline
Log In to Comment