3 #include <hrpModel/ModelLoaderUtil.h> 4 #include "hrpsys/util/GLbody.h" 5 #include "hrpsys/util/GLlink.h" 6 #include "hrpsys/util/GLutil.h" 14 orb(CORBA::ORB::_duplicate(orb)),
15 poa(PortableServer::POA::_duplicate(poa)),
16 scene(i_scene), log(i_log)
26 return PortableServer::POA::_duplicate(
poa);
36 if (!
scene->body(name_)){
37 std::cout <<
"load(" << url <<
")" << std::endl;
39 OpenHRP::ModelLoader::ModelLoadOption opt;
41 opt.AABBdata.length(0);
42 opt.AABBtype = OpenHRP::ModelLoader::AABB_NUM;
43 BodyInfo_var binfo = ml->getBodyInfoEx(url, opt);
void setLineWidth(::CORBA::Float width)
virtual ~OnlineViewer_impl()
HRPMODEL_API OpenHRP::ModelLoader_var getModelLoader(CosNaming::NamingContext_var cxt)
LogManager< OpenHRP::WorldState > * log
void setLineScale(::CORBA::Float scale)
HRPMODEL_API bool loadBodyFromBodyInfo(BodyPtr body, OpenHRP::BodyInfo_ptr bodyInfo, bool loadGeometryForCollisionDetection=false, Link *(*f)()=NULL)
void loadShapeFromBodyInfo(GLbody *body, BodyInfo_var i_binfo, GLshape *(*shapeFactory)())
virtual PortableServer::POA_ptr _default_POA()
void load(const char *name, const char *url)
OnlineViewer_impl(CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, GLscene *i_scene, LogManager< OpenHRP::WorldState > *i_log)
void update(const WorldState &state)
hrp::Link * GLlinkFactory()
PortableServer::POA_var poa
::CORBA::Boolean getPosture(const char *robotId, DblSequence_out posture)
void setLogName(const char *name)
void drawScene(const WorldState &state)