mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-19 05:20:06 +00:00
Merge pull request #746 from erwincoumans/master
bugfix: in torque control mode, torque index starts at 6.
This commit is contained in:
commit
aee6b35382
@ -1418,7 +1418,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm
|
||||
b3Printf("Using CONTROL_MODE_TORQUE");
|
||||
}
|
||||
// mb->clearForcesAndTorques();
|
||||
int torqueIndex = 0;
|
||||
int torqueIndex = 6;
|
||||
if ((clientCmd.m_updateFlags&SIM_DESIRED_STATE_HAS_MAX_FORCE)!=0)
|
||||
{
|
||||
for (int link=0;link<mb->getNumLinks();link++)
|
||||
|
@ -239,7 +239,7 @@ void b3Clock::usleep(int microSeconds)
|
||||
Sleep(millis);
|
||||
#else
|
||||
|
||||
usleep(microSeconds);
|
||||
::usleep(microSeconds);
|
||||
//struct timeval tv;
|
||||
//tv.tv_sec = microSeconds/1000000L;
|
||||
//tv.tv_usec = microSeconds%1000000L;
|
||||
|
Loading…
Reference in New Issue
Block a user