Esempio n. 1
0
	//----------------------------------------------------------------------
    void System::pushParticles(vector<float4> pos, float4 velo, float4 color, float mass)
    {
        int nn = pos.size();
        std::vector<float4> vels(nn);
        std::fill(vels.begin(), vels.end(), velo);
        pushParticles(pos, vels, color, mass);

    }
void doubleTouchThread::configureHands()
{
    Vector vels(9,100.0);    
    vels[8]=200.0; 

    printMessage(1,"Configuring master and slave hands...\n");
    for (int i=7; i<jntsM; i++)
    {
        iposM->setRefAcceleration(i,1e9);
        iposM->setRefSpeed(i,vels[i-7]);
        iposM->positionMove(i,handPossMaster[i-7]);
    }
    
    for (int i=7; i<jntsS; i++)
    {
        iposS->setRefAcceleration(i,1e9);
        iposS->setRefSpeed(i,vels[i-7]);
        iposS->positionMove(i,handPossSlave[i-7]);
    }
}