Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65841217
Supervisor.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
Thu, Jun 6, 14:11
Size
978 B
Mime Type
text/x-c
Expires
Sat, Jun 8, 14:11 (2 d)
Engine
blob
Format
Raw Data
Handle
18135472
Attached To
R6622 liboncilla
Supervisor.cpp
View Options
/*
* Supervisor.cpp
*
* Created on: Jan 21, 2013
* Author: tuleu
*/
#include "Supervisor.h"
#include <liboncilla/utils/OncillaBackend.h>
#include "Oncilla.h"
namespace
rci
{
namespace
oncilla
{
Supervisor
::
Supervisor
(
OncillaBackend
&
backend
)
:
d_l4s
(
4
,
SupervisorL4
::
Ptr
())
,
d_trunk
(
backend
.
CreateSupervisorTrunk
())
,
d_world
(
backend
.
CreateSupervisorWorld
()){
LIBONCILLA_FOREACH_LEG
(
l
)
{
d_l4s
[
l
]
=
backend
.
CreateSupervisorL4
(
l
,
Oncilla
::
nameOfLeg
(
l
)
+
" Oncilla Supervised L4"
);
}
}
Supervisor
::~
Supervisor
(){
}
const
SupervisorTrunk
::
Ptr
&
Supervisor
::
getTrunk
(){
return
d_trunk
;
}
const
SupervisorL4
::
Ptr
&
Supervisor
::
getL4
(
Leg
l
){
if
(
l
>=
NUM_LEGS
){
std
::
ostringstream
os
;
os
<<
"Leg "
<<
l
<<
"is out of range [0 3]."
;
throw
std
::
out_of_range
(
os
.
str
());
}
return
d_l4s
[
l
];
}
const
SupervisorWorld
::
Ptr
&
Supervisor
::
getWorld
(){
return
d_world
;
}
}
/* namespace oncilla */
}
/* namespace rci */
Event Timeline
Log In to Comment