Replace mjMAXVAL with numerical max limit where necessary in nativeccd.

PiperOrigin-RevId: 744693156
Change-Id: I72c3122701be281d468291dfc2ad1e4bb1da5a1c
This commit is contained in:
Kyle Bayes
2025-04-07 05:58:00 -07:00
committed by Copybara-Service
parent cc2f57d820
commit 58234b2217
3 changed files with 23 additions and 16 deletions
+8
View File
@@ -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