Esempio n. 1
0
bool ProxyObject::isAggregate() const {
    PROXY_SERIALIZED();
    if (!isPresence())
        return SequencedPresenceProperties::isAggregate();
    SequencedPresencePropertiesPtr req = mParent->parent()->presenceRequestedLocation(getObjectReference());
    uint64 latest_epoch = mParent->parent()->presenceLatestEpoch(getObjectReference());
    if (!req || latest_epoch >= req->getUpdateSeqNo(LOC_IS_AGG_PART))
        return SequencedPresenceProperties::isAggregate();
    return req->isAggregate();
}
Esempio n. 2
0
String ProxyObject::physics() const {
    PROXY_SERIALIZED();
    if (!isPresence())
        return SequencedPresenceProperties::physics();
    SequencedPresencePropertiesPtr req = mParent->parent()->presenceRequestedLocation(getObjectReference());
    uint64 latest_epoch = mParent->parent()->presenceLatestEpoch(getObjectReference());
    if (!req || latest_epoch >= req->getUpdateSeqNo(LOC_PHYSICS_PART))
        return SequencedPresenceProperties::physics();
    return req->physics();
}
Esempio n. 3
0
Transfer::URI ProxyObject::mesh() const {
    PROXY_SERIALIZED();
    if (!isPresence())
        return SequencedPresenceProperties::mesh();
    SequencedPresencePropertiesPtr req = mParent->parent()->presenceRequestedLocation(getObjectReference());
    uint64 latest_epoch = mParent->parent()->presenceLatestEpoch(getObjectReference());
    if (!req || latest_epoch >= req->getUpdateSeqNo(LOC_MESH_PART))
        return SequencedPresenceProperties::mesh();
    return req->mesh();
}
Esempio n. 4
0
TimedMotionQuaternion ProxyObject::orientation() const {
    PROXY_SERIALIZED();
    if (!isPresence())
        return SequencedPresenceProperties::orientation();
    SequencedPresencePropertiesPtr req = mParent->parent()->presenceRequestedLocation(getObjectReference());
    uint64 latest_epoch = mParent->parent()->presenceLatestEpoch(getObjectReference());
    if (!req || latest_epoch >= req->getUpdateSeqNo(LOC_ORIENT_PART))
        return SequencedPresenceProperties::orientation();
    return req->orientation();
}
Esempio n. 5
0
RoboCupCtrl::RoboCupCtrl() : simTime(false), dragTime(true), lastTime(0), joystickID(0)
{
  controller = this;
  time = 10000 - SystemCall::getRealSystemTime();

  obj = 0;
  SimObject* group = getObjectReference("RoboCup.robots");
  for(unsigned currentRobot = 0; currentRobot < group->getNumberOfChildNodes(); ++currentRobot)
  {
    obj = group->getChildNode(currentRobot);
    robotName = obj->getFullName();
    robots.push_back(new Robot(obj->getName().c_str(), obj));
  }

  if(getObjectReference("RoboCup.robots")->getNumberOfChildNodes())
    ball = getObjectReference("RoboCup.balls.ball");
  else
    ball = 0;
  
  setGUIUpdateDelay(100);
}
const NAString
StmtDDLDropExceptionTable::displayLabel2() const
{
  return NAString ("Table name: ") + getObjectReference();
}