-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Enable to specify update period of registered force profiles. (#…
…319) * [python/viewer] Greatly improve mesh loading speed. 'set_color' now set colors of both visual and collision meshes. * [python/viewer] Enable to zoom very close in 'panda3d' without seeing through the model. * [misc] Fix inter-operability with custom eigenpy/hppfcl/pinocchio install. * [misc] Add typing to 'panda3d_visualizer' module. * [core] Increase constants + variable names memory size. Clearer error message in case of overflow. * [core/python] Automatically reset to Zero the return variable of functors returning by value in C++. * [python/viewer] Add 'cone' and 'arrow' primitives to 'panda3d' rendering backend. * [python/viewer] Add methods 'move_node' and 'set_scale' to move and rescale a single node in 'panda3d'. * [python/viewer] More natural shadow casting in 'panda3d'. * [python/viewer] Default rendering backend is now 'panda3d' systematically for non-interactive mode. * [python/viewer] Move named color support from 'replay' module to 'viewer'. Improve default color cycle. * [python/viewer] 'set_color' also disables texture if specified, and reset original color and texture otherwise. * [python/viewer] Increase meshcat opening timeout to avoid false positive on low-end hardware. * [python/viewer] It is now possible to add custom 'markers', automatically updated at refresh. * [python/viewer] Fix viewer not properly closed in some cases, and internal state not cleaned-up. * [python/viewer] Fix viewer instance of simulator wrongly detected as still available after closing environment. * [python/viewer] Fix delete-on-close for panda3d. * [misc] Fix C++ error message not showing properly on Windows. * [misc] Check if Python executable provided to Cmake is valid. * [misc] Make sure OpenGL is installed by 'easy_install_deps_ubuntu.sh' script. * [python/viewer] Only display relevant error messages (if possible) when starting panda3d. * [python/viewer] Fallback to offscreen rendering if opening graphical window is impossible. * [core] Enable to specify update period of registered force profiles. * [core] Make sure system states are cleared at reset. * [core] Make it impossible to register external forces to the universe itself. Co-authored-by: Alexis Duburcq <[email protected]>
- Loading branch information
Showing
40 changed files
with
1,325 additions
and
520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import os | ||
import sys | ||
import stat | ||
import shutil | ||
import itertools | ||
from typing import Tuple | ||
|
||
import auditwheel.repair | ||
from auditwheel.repair import logger | ||
from auditwheel.elfutils import elf_read_rpaths | ||
from auditwheel.patcher import ElfPatcher | ||
from auditwheel.main import main | ||
|
||
|
||
copylib_orig = auditwheel.repair.copylib | ||
|
||
def copylib(src_path: str, dest_dir: str, | ||
patcher: ElfPatcher) -> Tuple[str, str]: | ||
# Do NOT hash filename to make it unique in the particular case of boost | ||
# python modules, since otherwise it will be impossible to share a common | ||
# registery, which is necessary for cross module interoperability. | ||
if "libboost_python" in src_path: | ||
src_name = os.path.basename(src_path) | ||
dest_path = os.path.join(dest_dir, src_name) | ||
if os.path.exists(dest_path): | ||
return src_name, dest_path | ||
|
||
logger.debug('Grafting: %s -> %s', src_path, dest_path) | ||
shutil.copy2(src_path, dest_path) | ||
rpaths = elf_read_rpaths(src_path) | ||
statinfo = os.stat(dest_path) | ||
if not statinfo.st_mode & stat.S_IWRITE: | ||
os.chmod(dest_path, statinfo.st_mode | stat.S_IWRITE) | ||
patcher.set_soname(dest_path, src_name) | ||
if any(itertools.chain(rpaths['rpaths'], rpaths['runpaths'])): | ||
patcher.set_rpath(dest_path, dest_dir) | ||
|
||
return src_name, dest_path | ||
return copylib_orig(src_path, dest_dir, patcher) | ||
|
||
auditwheel.repair.copylib = copylib | ||
|
||
|
||
if __name__ == '__main__': | ||
sys.exit(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.