| 1132 | } |
| 1133 | |
| 1134 | B3_SHARED_API int b3JointControlSetKd(b3SharedMemoryCommandHandle commandHandle, int dofIndex, double value) |
| 1135 | { |
| 1136 | struct SharedMemoryCommand* command = (struct SharedMemoryCommand*)commandHandle; |
| 1137 | b3Assert(command); |
| 1138 | if ((dofIndex >= 0) && (dofIndex < MAX_DEGREE_OF_FREEDOM)) |
| 1139 | { |
| 1140 | command->m_sendDesiredStateCommandArgument.m_Kd[dofIndex] = value; |
| 1141 | command->m_updateFlags |= SIM_DESIRED_STATE_HAS_KD; |
| 1142 | command->m_sendDesiredStateCommandArgument.m_hasDesiredStateFlags[dofIndex] |= SIM_DESIRED_STATE_HAS_KD; |
| 1143 | } |
| 1144 | return 0; |
| 1145 | } |
| 1146 | |
| 1147 | B3_SHARED_API int b3JointControlSetKdMultiDof(b3SharedMemoryCommandHandle commandHandle, int dofIndex, double* kds, int dofCount) |
| 1148 | { |
no outgoing calls
no test coverage detected