Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F68436723
L0.h
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
Thu, Jun 27, 09:37
Size
1 KB
Mime Type
text/x-c++
Expires
Sat, Jun 29, 09:37 (2 d)
Engine
blob
Format
Raw Data
Handle
18534298
Attached To
R6622 liboncilla
L0.h
View Options
#pragma once
#include <iostream>
#include <boost/shared_ptr.hpp>
#include <rci/ResourceNode.h>
#include <rci/Controlled.h>
#include <rci/Sensing.h>
#include <rci/dto/JointAngles.h>
namespace
rci
{
namespace
oncilla
{
/**
* Node class, representing the hip node of the quadruped robot.
* @todo In case of simulation, this node can also sense the power consumption.
*/
class
L0
:
public
rci
::
ResourceNode
,
public
rci
::
Controlled
,
public
rci
::
PositionControlled
,
public
rci
::
Sensing
,
public
rci
::
ForceSensing
{
public:
typedef
boost
::
shared_ptr
<
L0
>
Ptr
;
L0
(
const
std
::
string
&
name
=
"Oncilla Scapula"
);
virtual
~
L0
();
/**
* Returns, if the controller is converged.
* \note This always return false for Oncilla : reason we use PWM
* controlled servos for this joint.
* \return always false, always.
*/
bool
isConverged
()
const
;
/**
* Print
*/
std
::
string
print
()
const
;
protected
:
/**
* Helper function to get command in derived classes.
* \internal
*/
double
unsafeGetCommand
()
const
;
/**
* Helper function to update forces in derived classes.
* \internal
*/
void
unsafeUpdateForce
(
double
x
,
double
y
,
double
torque
);
};
}
}
Event Timeline
Log In to Comment