Download applications/avoiding/run/direct_hook.patch from GlobalMotionPlanning/GlobMP: direct link, hf CLI and curl.
- Browser
- Download file 636 Bytes
-
https://huggingface.co/GlobalMotionPlanning/GlobMP/resolve/main/applications/avoiding/run/direct_hook.patch
- Command line
-
hf download hf://GlobalMotionPlanning/GlobMP/applications/avoiding/run/direct_hook.patch
-
curl -L -o direct_hook.patch https://huggingface.co/GlobalMotionPlanning/GlobMP/resolve/main/applications/avoiding/run/direct_hook.patch
636 Bytes
| --- a/policy/direct.py | |
| +++ b/policy/direct.py | |
| if prediction_objective == "distance": | |
| objective_fn = self._make_distance_objective(normalizer) | |
| + import os # GlobMP as the projector: DIRECT_PROJECTOR=globmp | |
| + if os.environ.get('DIRECT_PROJECTOR', '') == 'globmp': # (applications/avoiding/globmp_projector.py) | |
| + from globmp_projector import GlobMPProjector as IpoptProjector | |
| self._projector = IpoptProjector( | |
| circular_obstacles=circular_obs, | |
| planar_obstacles=planar_obs, | |