当前位置: 首页>>代码示例>>C++>>正文


C++ dsSetViewpoint函数代码示例

本文整理汇总了C++中dsSetViewpoint函数的典型用法代码示例。如果您正苦于以下问题:C++ dsSetViewpoint函数的具体用法?C++ dsSetViewpoint怎么用?C++ dsSetViewpoint使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了dsSetViewpoint函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: start

void start()
{
  // Set a camera
  static float xyz[3] = {0.0,-2.0,1.0};  // View position (x, y, z [m])
  static float hpr[3] = {90.0,0.0,0.0};  // View direction head, pitch, roll[°]
  dsSetViewpoint (xyz,hpr);// Set a view point
}
开发者ID:minroth,项目名称:Robot-Simulator,代码行数:7,代码来源:capsule.cpp

示例2: updatecam

static void updatecam()
{
    xyz[0] = platpos[0] + 3.3;
    xyz[1] = platpos[1] - 1.8;
    xyz[2] = platpos[2] + 2;
    dsSetViewpoint (xyz, hpr);
}
开发者ID:EdgarSun,项目名称:opende,代码行数:7,代码来源:demo_motion.cpp

示例3: start

static void start()
{
  static float xyz[3] = {1.0382f,-1.0811f,1.4700f};
  static float hpr[3] = {135.0000f,-19.5000f,0.0000f};
  dsSetViewpoint (xyz,hpr);
  printf ("Press 'e' to start/stop occasional error.\n");
}
开发者ID:aliverobotics,项目名称:Pumas-SmallSize,代码行数:7,代码来源:test_slider.cpp

示例4: start

static void start() {
  //static float xyz[3] = { 0.2,5.2,1.0};
  static float xyz[3] = { 1.0,1.5,1.0};
  static float hpr[3] = { 270,0,0};
  dsSetViewpoint(xyz,hpr);               // 視点,視線の設定
  dsSetSphereQuality(3);                 // 球の品質設定
}
开发者ID:robot-nishida,项目名称:defense_rod,代码行数:7,代码来源:rod.cpp

示例5: start

void start()
{
    static float xyz[3] = {1.5, -1.5, 0.8};    // View position (x, y, z) [m]
    static float hpr[3] = {136.0, 0.0, 0.0};    // View direction (head,pitch,roll)
    dsSetViewpoint (xyz,hpr);                   // Set a view point
  	dsSetSphereQuality(3);

    // ********** Pre-compute a simple trajectory wrt Fixed Leg *************************************
    double t0 = 0.0, t1 = 2.0;                                                          // Time (initial & final)
    bool FixedLeg = RIGHT;
    Math::TPoint3D Pq1, Pq2, Pf1, Pf2;

    Pq1.x=0.0; Pq1.y=0.0; Pq1.z=(L3+L4+L5+L6+L7+L8);      Pq1.vx=0; Pq1.vy=0; Pq1.vz=0; // Hips wrt Fixed Leg: Initial Point
    Pq2.x=0.0; Pq2.y=-L1; Pq2.z=(L3+L4+L5+L6+L7+L8)-L1/4; Pq2.vx=0; Pq2.vy=0; Pq2.vz=0; // Hips wrt Fixed Leg: Final Point
    //Pq2.x=0.0; Pq2.y=0.0; Pq2.z=(L3+L4+L5+L6+L7+L8)-0.05; Pq2.vx=0; Pq2.vy=0; Pq2.vz=0; // Hips: Final Point

    Pf1.x=0.0; Pf1.y=2*L1; Pf1.z=0; Pf1.vx=0; Pf1.vy=0; Pf1.vz=0;   // Floating Leg wrt Fixed Leg: Initial Point
    Pf2.x=0.0; Pf2.y=2*L1; Pf2.z=0; Pf2.vx=0; Pf2.vy=0; Pf2.vz=0;   // Floating Leg wrt Fixed Leg: Final Point

    Traj::rComputeHipsMotion(PreComputedAngleL, PreComputedAngleR, target_angleL, target_angleR,
                             Pq1,Pq2,Pf1,Pf2,t0,t1,TLENG,FixedLeg);

    printf("\nAngles: Pre-computed \n");

}
开发者ID:oscarefrain,项目名称:BipedRobot,代码行数:25,代码来源:rob05TestTrajectoryHips.cpp

示例6: start

/* ------------------------
* スタート関数
------------------------ */
static void start()
{
    float xyz[3] = {   0.2, 2.5, 4.00};     /* カメラ座標 */
    float hpr[3] = { 90.0, -90.0, 0.0};     /* カメラ方向 */
    dsSetViewpoint(xyz,hpr);
    dsSetSphereQuality(3);
}
开发者ID:PrinzEugen7,项目名称:Robotics,代码行数:10,代码来源:main.cpp

示例7: start

static void start()
{
    // initial camera position
    static float xyz[3] = {1, 1, 0.5};
    static float hpr[3] = {225, 0, 0};
    dsSetViewpoint (xyz,hpr);
}
开发者ID:dtbinh,项目名称:kinematicEngine,代码行数:7,代码来源:physicsVisualization.cpp

示例8: start

static void start()
{
  dAllocateODEDataForThread(dAllocateMaskAll);

  static float xyz[3] = {14.6117f,-6.4433f,9.3700f};
  static float hpr[3] = {140.5000f,-20.5000f,0.0000f};
  dsSetViewpoint (xyz,hpr);
}
开发者ID:joao-lima,项目名称:opende_kaapi,代码行数:8,代码来源:demo_step.cpp

示例9: start

static void start()
{
  dAllocateODEDataForThread(dAllocateMaskAll);

  static float xyz[3] = {2.4807,-1.8023,2.7600};
  static float hpr[3] = {141.5000,-18.5000,0.0000};
  dsSetViewpoint (xyz,hpr);
}
开发者ID:JohnCrash,项目名称:ode,代码行数:8,代码来源:demo_collision.cpp

示例10: start

static void start()
{
  dAllocateODEDataForThread(dAllocateMaskAll);

  static float xyz[3] = {-8,-9,3};
  static float hpr[3] = {45.0000f,-27.5000f,0.0000f};
  dsSetViewpoint (xyz,hpr);
}
开发者ID:JohnCrash,项目名称:ode,代码行数:8,代码来源:demo_cylvssphere.cpp

示例11: start

static void start()
{
  static float xyz[3] = {1.0382f,-1.0811f,1.4700f};
  static float hpr[3] = {135.0000f,-19.5000f,0.0000f};
  dsSetViewpoint (xyz,hpr);
  printf ("Press 'q,a,z' to control one axis of lmotor connectiong two bodies. (q is +,a is 0, z is -)\n");
  printf ("Press 'w,e,r' to control one axis of lmotor connectiong first body with world. (w is +,e is 0, r is -)\n");
}
开发者ID:CentreForBioRobotics,项目名称:lpzrobots,代码行数:8,代码来源:test_motor.cpp

示例12: start

static void start()
{
  static float xyz[3] = {2.1640f,-1.3079f,1.7600f};
  static float hpr[3] = {125.5000f,-17.0000f,0.0000f};

  dAllocateODEDataForThread(dAllocateMaskAll);
  dsSetViewpoint (xyz,hpr);
}
开发者ID:JohnCrash,项目名称:ode,代码行数:8,代码来源:demo_chain1.c

示例13: start

static void start()
{
  dAllocateODEDataForThread(dAllocateMaskAll);

  static float xyz[3] = { -6, 8, 6};
  static float hpr[3] = { -65.0f, -27.0f, 0.0f};
  dsSetViewpoint (xyz,hpr);
}
开发者ID:BenitoJedai,项目名称:jslibs,代码行数:8,代码来源:demo_feedback.cpp

示例14: start

static void start()
{
//  static float xyz[3] = {-5.0575, 8.4513, 14.300};
//  static float hpr[3] = {-57.0000, -42.5000, 0.000};
	static float xyz[3] = { -4.0068, 8.0185, 2.8900 };
	static float hpr[3] = { -84.000, -20.5000, 0.0000 };
	//xyz[ZZ] = initz*1.75;
	dsSetViewpoint(xyz, hpr);
}
开发者ID:alon,项目名称:track,代码行数:9,代码来源:Simulation.cpp

示例15: start

static void start()
{
  dAllocateODEDataForThread(dAllocateMaskAll);

  static float xyz[3] = {1.0382f,-1.0811f,1.4700f};
  static float hpr[3] = {135.0000f,-19.5000f,0.0000f};
  dsSetViewpoint (xyz,hpr);
  printf ("Press 'e' to start/stop occasional error.\n");
}
开发者ID:Devilmore,项目名称:GoalBabbling,代码行数:9,代码来源:demo_hinge.cpp


注:本文中的dsSetViewpoint函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。