void RK_CALL UAV_kinematics::load(serialization::iarchive& A, unsigned int) {
  inverse_kinematics_model::load(A,inverse_kinematics_model::getStaticObjectType()->TypeVersion());
  A & RK_SERIAL_LOAD_WITH_NAME(m_base_frame)
    & RK_SERIAL_LOAD_WITH_NAME(m_motion_frame)
    & RK_SERIAL_LOAD_WITH_NAME(m_output_frame)
    & RK_SERIAL_LOAD_WITH_NAME(m_chain);
};
Exemple #2
0
 virtual void RK_CALL load(ReaK::serialization::iarchive& A, unsigned int) {
   shared_ptr< self > tmp;
   A & RK_SERIAL_LOAD_WITH_ALIAS("Parent",tmp)
     & RK_SERIAL_LOAD_WITH_NAME(Position)
     & RK_SERIAL_LOAD_WITH_NAME(Rotation);
   Parent = tmp;
 };
 virtual void RK_CALL load(serialization::iarchive& A, unsigned int) {
   kte_map::load(A,kte_map::getStaticObjectType()->TypeVersion());
   A & RK_SERIAL_LOAD_WITH_NAME(mBase)
     & RK_SERIAL_LOAD_WITH_NAME(mEnd)
     & RK_SERIAL_LOAD_WITH_NAME(mNormal)
     & RK_SERIAL_LOAD_WITH_NAME(mOrigin);
 };
Exemple #4
0
 virtual void RK_CALL load(serialization::iarchive& A, unsigned int) {
   kte_map::load(A,kte_map::getStaticObjectType()->TypeVersion());
   A & RK_SERIAL_LOAD_WITH_NAME(mAnchor1)
     & RK_SERIAL_LOAD_WITH_NAME(mAnchor2)
     & RK_SERIAL_LOAD_WITH_NAME(mStiffness)
     & RK_SERIAL_LOAD_WITH_NAME(mSaturation);
 };
    virtual void RK_CALL load(ReaK::serialization::iarchive& A, unsigned int) {
      named_object::load(A,named_object::getStaticObjectType()->TypeVersion());
      A & RK_SERIAL_LOAD_WITH_NAME(mMass)
        & RK_SERIAL_LOAD_WITH_NAME(mInertiaMoment)
        & RK_SERIAL_LOAD_WITH_NAME(mDt);
      if((mInertiaMoment.get_row_count() != 3) || (mMass < std::numeric_limits< double >::epsilon()))
	throw system_incoherency("Inertial information is improper in satellite3D_lin_dt_system's definition");
      try {
        invert_Cholesky(mInertiaMoment,mInertiaMomentInv);
      } catch(singularity_error&) {
	throw system_incoherency("Inertial tensor is singular in satellite3D_lin_dt_system's definition");
      };
    };
void ChaserTargetInteractWidget::loadPositions() {
  QString fileName = QFileDialog::getOpenFileName(
    this, 
    tr("Open Positions Record..."),
    last_used_path,
    tr("Chaser-Target Positions Record (*.ctpos.rkx *.ctpos.rkb *.ctpos.pbuf)"));
  
  if( fileName == tr("") )
    return;
  
  last_used_path = QFileInfo(fileName).absolutePath();
  
  vect<double,7> chaser_positions;
  vect<double,3> target_position;
  quaternion<double> target_quaternion;
  
  try {
    *(serialization::open_iarchive(fileName.toStdString()))
      & RK_SERIAL_LOAD_WITH_NAME(chaser_positions)
      & RK_SERIAL_LOAD_WITH_NAME(target_position)
      & RK_SERIAL_LOAD_WITH_NAME(target_quaternion);
  } catch(...) {
    QMessageBox::information(this,
                "File Type Not Supported!",
                "Sorry, this file-type is not supported!",
                QMessageBox::Ok);
    return;
  };
  
  this->track_pos->setValue(int(1000.0 * chaser_positions[0]));
  this->joint1_pos->setValue(int(1000.0 * chaser_positions[1]));
  this->joint2_pos->setValue(int(1000.0 * chaser_positions[2]));
  this->joint3_pos->setValue(int(1000.0 * chaser_positions[3]));
  this->joint4_pos->setValue(int(1000.0 * chaser_positions[4]));
  this->joint5_pos->setValue(int(1000.0 * chaser_positions[5]));
  this->joint6_pos->setValue(int(1000.0 * chaser_positions[6])); 
  onJointChange();
  
  this->target_x->setValue(int(1000.0 * target_position[0]));
  this->target_y->setValue(int(1000.0 * target_position[1]));
  this->target_z->setValue(int(1000.0 * target_position[2]));
  euler_angles_TB<double> ea = euler_angles_TB<double>(target_quaternion);
  this->target_yaw->setValue(int(1000.0 * ea.yaw()));
  this->target_pitch->setValue(int(1000.0 * ea.pitch()));
  this->target_roll->setValue(int(1000.0 * ea.roll()));
  onTargetChange();
  
};
void RK_CALL navigation_scenario::load(serialization::iarchive& A, unsigned int) {
  named_object::load(A,named_object::getStaticObjectType()->TypeVersion());
  A & RK_SERIAL_LOAD_WITH_NAME(robot_base_frame)
    & RK_SERIAL_LOAD_WITH_NAME(robot_kin_model)
    & RK_SERIAL_LOAD_WITH_NAME(robot_jt_limits)
    & RK_SERIAL_LOAD_WITH_NAME(robot_proxy)
    & RK_SERIAL_LOAD_WITH_NAME(robot_geom_model)
    & RK_SERIAL_LOAD_WITH_NAME(target_frame)
    & RK_SERIAL_LOAD_WITH_NAME(env_geom_models)
    & RK_SERIAL_LOAD_WITH_NAME(env_proxy_models)
    & RK_SERIAL_LOAD_WITH_NAME(robot_env_proxies);
};
Exemple #8
0
    virtual void RK_CALL load(ReaK::serialization::iarchive& A, unsigned int) {
      kte_map::load(A,kte_map::getStaticObjectType()->TypeVersion());
      A & RK_SERIAL_LOAD_WITH_NAME(mAnchor);
      if(mAnchor)
	mQuatMeasure = mAnchor->Quat;
      else
	mQuatMeasure = quaternion<double>();
    };
Exemple #9
0
    virtual void RK_CALL load(ReaK::serialization::iarchive& A, unsigned int) {
      kte_map::load(A,kte_map::getStaticObjectType()->TypeVersion());
      A & RK_SERIAL_LOAD_WITH_NAME(mAnchor);
      if(mAnchor)
	mVelMeasure = mAnchor->q_dot;
      else
	mVelMeasure = 0.0;
    };
Exemple #10
0
    virtual void RK_CALL load(ReaK::serialization::iarchive& A, unsigned int) {
      kte_map::load(A,kte_map::getStaticObjectType()->TypeVersion());
      A & RK_SERIAL_LOAD_WITH_NAME(mAnchor);
      if(mAnchor) 
	mAngVelMeasure = mAnchor->AngVelocity;
      else
	mAngVelMeasure = vect<double,3>();
    };
void scenario_data::load_positions(const std::string& fileName) {
  
  vect<double,7> chaser_joint_positions;
  vect<double,3> target_position;
  quaternion<double> target_quaternion;
  
  shared_ptr< serialization::iarchive > p_in = serialization::open_iarchive(fileName);
  (*p_in) & RK_SERIAL_LOAD_WITH_NAME(chaser_joint_positions)
          & RK_SERIAL_LOAD_WITH_NAME(target_position)
          & RK_SERIAL_LOAD_WITH_NAME(target_quaternion);
  
  chaser_kin_model->setJointPositions(chaser_joint_positions);
  chaser_kin_model->doDirectMotion();
  
  target_state->Position = target_position;
  target_state->Quat = target_quaternion;
  target_kin_chain->doMotion();
  
};
 virtual void RK_CALL load(serialization::iarchive& A, unsigned int) {
   direct_kinematics_model::load(A,direct_kinematics_model::getStaticObjectType()->TypeVersion());
   A & RK_SERIAL_LOAD_WITH_NAME(mCoords)
     & RK_SERIAL_LOAD_WITH_NAME(mFrames2D)
     & RK_SERIAL_LOAD_WITH_NAME(mFrames3D)
     & RK_SERIAL_LOAD_WITH_NAME(mDependentGenCoords)
     & RK_SERIAL_LOAD_WITH_NAME(mDependent2DFrames)
     & RK_SERIAL_LOAD_WITH_NAME(mDependent3DFrames)
     & RK_SERIAL_LOAD_WITH_NAME(mModel);
 };
Exemple #13
0
 virtual void RK_CALL load(ReaK::serialization::iarchive& A, unsigned int) {
   base::load(A,base::getStaticObjectType()->TypeVersion());
   A & RK_SERIAL_LOAD_WITH_NAME(Velocity)
     & RK_SERIAL_LOAD_WITH_NAME(AngVelocity)
     & RK_SERIAL_LOAD_WITH_NAME(Acceleration)
     & RK_SERIAL_LOAD_WITH_NAME(AngAcceleration)
     & RK_SERIAL_LOAD_WITH_NAME(Force)
     & RK_SERIAL_LOAD_WITH_NAME(Torque);
 };
void RK_CALL ptrobot2D_test_world::load(serialization::iarchive& A, unsigned int) {
  ReaK::named_object::load(A,named_object::getStaticObjectType()->TypeVersion());
  A & RK_SERIAL_LOAD_WITH_NAME(world_map_file_name)
    & RK_SERIAL_LOAD_WITH_NAME(robot_radius)
    & RK_SERIAL_LOAD_WITH_NAME(max_edge_length)
    & RK_SERIAL_LOAD_WITH_NAME(m_space)
    & RK_SERIAL_LOAD_WITH_NAME(m_distance)
    & RK_SERIAL_LOAD_WITH_NAME(m_rand_sampler);
  delete pimpl;
  pimpl = new ptrobot2D_test_world_impl(world_map_file_name, robot_radius);
};
void RK_CALL proximity_record_2D::load(ReaK::serialization::iarchive& A, unsigned int) {
  shared_object::load(A,shared_object::getStaticObjectType()->TypeVersion());
  A & RK_SERIAL_LOAD_WITH_NAME(mPoint1)
    & RK_SERIAL_LOAD_WITH_NAME(mPoint2)
    & RK_SERIAL_LOAD_WITH_NAME(mDistance);
};
Exemple #16
0
void RK_CALL circle::load(ReaK::serialization::iarchive& A, unsigned int) {
  shape_2D::load(A,shape_2D::getStaticObjectType()->TypeVersion());
  A & RK_SERIAL_LOAD_WITH_NAME(mRadius);
};
void RK_CALL capped_cylinder::load(ReaK::serialization::iarchive& A, unsigned int) {
  shape_3D::load(A,shape_3D::getStaticObjectType()->TypeVersion());
  A & RK_SERIAL_LOAD_WITH_NAME(mLength)
    & RK_SERIAL_LOAD_WITH_NAME(mRadius);
};
Exemple #18
0
void RK_CALL line_seg_2D::load(ReaK::serialization::iarchive& A, unsigned int) {
  geometry_2D::load(A,geometry_2D::getStaticObjectType()->TypeVersion());
  A & RK_SERIAL_LOAD_WITH_NAME(mStart)
    & RK_SERIAL_LOAD_WITH_NAME(mEnd);
};
 virtual void RK_CALL load(ReaK::serialization::iarchive& A, unsigned int) {
   cost_evaluator::load(A,cost_evaluator::getStaticObjectType()->TypeVersion());
   A & RK_SERIAL_LOAD_WITH_NAME(first_eval)
     & RK_SERIAL_LOAD_WITH_NAME(second_eval);
 };
 virtual void RK_CALL load(ReaK::serialization::iarchive& A, unsigned int) {
   A & RK_SERIAL_LOAD_WITH_NAME(mFrame)
     & RK_SERIAL_LOAD_WITH_NAME(mUpStreamJoints)
     & RK_SERIAL_LOAD_WITH_NAME(mUpStream2DJoints)
     & RK_SERIAL_LOAD_WITH_NAME(mUpStream3DJoints);
 };
 virtual void RK_CALL load(ReaK::serialization::iarchive& A, unsigned int) {
   named_object::load(A,named_object::getStaticObjectType()->TypeVersion());
   A & RK_SERIAL_LOAD_WITH_NAME(mMass)
     & RK_SERIAL_LOAD_WITH_NAME(mInertiaMoment);
 };
Exemple #22
0
 virtual void RK_CALL load(serialization::iarchive& A, unsigned int) {
   A & RK_SERIAL_LOAD_WITH_NAME(t_space);
 };
Exemple #23
0
 virtual void RK_CALL load(serialization::iarchive& A, unsigned int) {
   A & RK_SERIAL_LOAD_WITH_NAME(t_space)
     & RK_SERIAL_LOAD_WITH_NAME(tolerance)
     & RK_SERIAL_LOAD_WITH_NAME(maximum_iterations);
 };
 virtual void RK_CALL load(ReaK::serialization::iarchive& A, unsigned int) {
   kte_map::load(A,kte_map::getStaticObjectType()->TypeVersion());
   system_input::load(A,system_input::getStaticObjectType()->TypeVersion());
   A & RK_SERIAL_LOAD_WITH_NAME(mAnchor);
 };
 virtual void RK_CALL load(serialization::iarchive& A, unsigned int) {
   revolute_joint_2D::load(A,revolute_joint_2D::getStaticObjectType()->TypeVersion());
   A & RK_SERIAL_LOAD_WITH_NAME(mStictionCoef)
     & RK_SERIAL_LOAD_WITH_NAME(mSlipCoef)
     & RK_SERIAL_LOAD_WITH_NAME(mSlipVelocity);
 };
Exemple #26
0
 virtual void RK_CALL load(serialization::iarchive& A, unsigned int) {
   force_actuator_3D::load(A,force_actuator_3D::getStaticObjectType()->TypeVersion());
   A & RK_SERIAL_LOAD_WITH_NAME(mDriveForce)
     & RK_SERIAL_LOAD_WITH_NAME(mDriveTorque);
 };
void RK_CALL composite_shape_3D::load(ReaK::serialization::iarchive& A, unsigned int) {
  shape_3D::load(A,shape_3D::getStaticObjectType()->TypeVersion());
  A & RK_SERIAL_LOAD_WITH_NAME(mShapes);
};
    virtual void RK_CALL load(serialization::iarchive& A, unsigned int) {
      kte_map::load(A,kte_map::getStaticObjectType()->TypeVersion());
      A & RK_SERIAL_LOAD_WITH_NAME(mFrame)
        & RK_SERIAL_LOAD_WITH_NAME(mJoint);

    };
Exemple #29
0
void RK_CALL grid_2D::load(ReaK::serialization::iarchive& A, unsigned int) {
  geometry_2D::load(A,geometry_2D::getStaticObjectType()->TypeVersion());
  A & RK_SERIAL_LOAD_WITH_NAME(mDimensions)
    & RK_SERIAL_LOAD_WITH_NAME(mSquareCounts);
};
Exemple #30
0
void RK_CALL prox_circle_circle::load(ReaK::serialization::iarchive& A, unsigned int) {
  proximity_finder_2D::load(A,proximity_finder_2D::getStaticObjectType()->TypeVersion());
  A & RK_SERIAL_LOAD_WITH_NAME(mCircle1)
    & RK_SERIAL_LOAD_WITH_NAME(mCircle2);
};