Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F68747943
OncillaL4.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
Fri, Jun 28, 18:37
Size
697 B
Mime Type
text/x-c
Expires
Sun, Jun 30, 18:37 (2 d)
Engine
blob
Format
Raw Data
Handle
18626974
Attached To
R6622 liboncilla
OncillaL4.cpp
View Options
#include "OncillaL4.h"
using
namespace
std
;
namespace
rci
{
namespace
oncilla
{
OncillaL4
::
OncillaL4
(
const
std
::
string
&
name
)
:
rci
::
ResourceNode
(
name
)
,
rci
::
Sensing
()
,
rci
::
ForceSensing
(){
this
->
forces
=
(
ForcesPtr
(
new
Forces
(
0
,
0
,
0
)));
}
ForcesPtr
OncillaL4
::
getForces
()
const
{
return
this
->
forces
;
}
OncillaL4
::~
OncillaL4
()
{
}
std
::
string
OncillaL4
::
print
()
const
{
ostringstream
outstream
(
ostringstream
::
out
);
outstream
.
precision
(
3
);
// Precision when printing double values
outstream
<<
"<Oncilla Foot>"
<<
endl
;
return
outstream
.
str
();
}
void
OncillaL4
::
unsafeUpdateForce
(
const
double
*
data
){
this
->
updateForces
(
ForcesPtr
(
new
Forces
(
data
[
0
],
data
[
1
],
data
[
2
])));
}
}
}
Event Timeline
Log In to Comment