Replace mjMAXVAL with numerical max limit where necessary in nativeccd.
PiperOrigin-RevId: 744693156 Change-Id: I72c3122701be281d468291dfc2ad1e4bb1da5a1c
This commit is contained in:
committed by
Copybara-Service
parent
cc2f57d820
commit
58234b2217
@@ -15,6 +15,7 @@
|
||||
#ifndef MUJOCO_SRC_ENGINE_ENGINE_COLLISION_GJK_H_
|
||||
#define MUJOCO_SRC_ENGINE_ENGINE_COLLISION_GJK_H_
|
||||
|
||||
#include <float.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include <mujoco/mjexport.h>
|
||||
@@ -27,6 +28,13 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// numerical max limit
|
||||
#ifndef mjUSESINGLE
|
||||
#define mjMAX_LIMIT DBL_MAX
|
||||
#else
|
||||
#define mjMAX_LIMIT FLT_MAX
|
||||
#endif
|
||||
|
||||
// max number of EPA iterations
|
||||
#define mjMAX_EPA_ITERATIONS 170
|
||||
|
||||
|
||||
Reference in New Issue
Block a user