16 #ifndef OPENHRP_CONTROLLER_BRIDGE_CONTROLLER_IMPL_H_INCLUDED 17 #define OPENHRP_CONTROLLER_BRIDGE_CONTROLLER_IMPL_H_INCLUDED 24 #include <rtm/idl/RTCStub.h> 26 #include <hrpCorba/Controller.hh> 27 #include <hrpCorba/ViewSimulator.hh> 28 #include <hrpCorba/DynamicsSimulator.hh> 40 :
virtual public POA_OpenHRP::Controller
46 SensorState& getCurrentSensorState();
47 DblSequence* getLinkDataFromSimulator
48 (
const std::string& linkName, DynamicsSimulator::LinkDataType linkDataType);
49 DblSequence* getSensorDataFromSimulator(
const std::string& sensorName);
50 ImageData* getCameraImageFromSimulator(
int cameraId);
51 DblSequence& getJointDataSeqRef(DynamicsSimulator::LinkDataType linkDataType);
52 void flushJointDataSeqToSimulator(DynamicsSimulator::LinkDataType linkDataType);
53 void flushLinkDataToSimulator(
const std::string& linkName,
54 DynamicsSimulator::LinkDataType linkDataType,
55 const DblSequence& linkData);
57 virtual void setDynamicsSimulator(DynamicsSimulator_ptr dynamicsSimulator);
58 virtual void setViewSimulator(ViewSimulator_ptr viewSimulator);
67 virtual void control();
73 virtual void shutdown();
75 virtual void setModelName(
const char* localModelName){ modelName = localModelName;}
76 virtual void initialize();
86 typedef std::map<std::string, Port_Service_Var_Type>
PortMap;
123 void makePortMap(RtcInfoPtr& rtcInfo);
125 void setupRtcConnections();
128 void activeComponents();
129 void deactiveComponents();
130 void disconnectRtcConnections(PortMap& refPortMap);
virtual omniObjRef * _do_get_interface()
Camera::CameraParameter_var cparam
VirtualRobotRTC * virtualRobotRTC
std::map< DynamicsSimulator::LinkDataType, JointValueSeqInfo > JointValueSeqInfoMap
OpenRTM::ExtTrigExecutionContextService_var ExtTrigExecutionContextService_Var_Type
RTC::Manager * rtcManager
boost::shared_ptr< RtcInfo > RtcInfoPtr
std::vector< RtcInfoPtr > RtcInfoVector
JointValueSeqInfoMap outputJointValueSeqInfos
DynamicsSimulator_var dynamicsSimulator
virtual void setModelName(const char *localModelName)
RTC::CorbaNaming * naming
CameraSequence_var cameras
local int destroy(gz_stream *s)
ExtTrigExecutionContextService_Var_Type execContext
std::map< std::string, RtcInfoPtr > RtcInfoMap
RtcInfoVector rtcInfoVector
RTC::PortService_ptr Port_Service_Ptr_Type
std::map< std::string, Port_Service_Var_Type > PortMap
void setTimeStep(CORBA::Double _timeStep)
ViewSimulator_var viewSimulator
SensorState_var sensorState
output(gif_dest_ptr dinfo, int code)