pybullet, deal with overflow of joints (maximum of 128 joints/links per multibody at the moment)
increase from 64 to 128 joints in shared memory API/pybullet fix potential issue in tinyrenderer, related to missing segmentation mask buffer report error if CMD_REQUEST_ACTUAL_STATE command on a multibody that exceed the number of links, todo: stream data to allow arbitrary large number of links in shared memory API
This commit is contained in:
@@ -1602,6 +1602,12 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm
|
||||
int totalDegreeOfFreedomQ = 0;
|
||||
int totalDegreeOfFreedomU = 0;
|
||||
|
||||
if (mb->getNumLinks()>= MAX_DEGREE_OF_FREEDOM)
|
||||
{
|
||||
serverStatusOut.m_type = CMD_ACTUAL_STATE_UPDATE_FAILED;
|
||||
hasStatus = true;
|
||||
break;
|
||||
}
|
||||
|
||||
//always add the base, even for static (non-moving objects)
|
||||
//so that we can easily move the 'fixed' base when needed
|
||||
|
||||
Reference in New Issue
Block a user