-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[unitree/cross] Enable to share single docker image with multiple users #1868
Conversation
b5e5576
to
a7f2129
Compare
I will check this branch today. |
Thanks for the confirmation. However, there should be a robot with the software that worked 6 months ago already installed on the main computer. You can use the robot as an embedded system, so do not work on the internal system, build your own environment on an external PC and prepare for SI first. Unfortunately it is not working well at the moment, but the purpose of the 'cross' system is not to spend time building and debugging all the software for each use of the robot, but instead to add/copy programs to jsk_unitree_robot or unitree.repos and . /build_user.sh and . /install.sh so that we could concentrate on app development and demo creation. |
ca23d42
to
2d6302a
Compare
…time to use same UDI/GID as host user. See https://qiita.com/ktamido/items/8d7b7eddbd88bd1bbf99
…YTHONPATH [jsk_unitree_startup/cross] Install sitecustomize.py for real unitree robot [jsk_unitree_startup/cross] Recursively append python site/dist-package paths [jsk_unitree_startup/cross] Passthrough password
… in build_ros1_dependencies.sh
bb3e89f
to
919766c
Compare
- catkin_virtualenv depends on python3-venv and virtualenv, so we added these packages on ros1_dependencies_build_scripts, because they are not found on actual robots. - not sure why, but catkin_virtualenv (test_catkin_virutalenv_python2) depends on cython, But with 1049-cython, it fails to instal PyYAML, so we force add cython dep packages in Dockerfile_ros1
…etting PYTHONPATH" This reverts commit cd1e330.
…m sys.path for both python2 and python3
I have confirmed that this PR works with k-okada. a part of
|
新しい環境(phobos)でmake systemして放置していましたが以下のエラーが出ていました. すべてのログ:https://gist.github.com/tkmtnt7000/25ff0f8d559abc69444b18bd60d7c789 <== Finished processing package [36 of 94]: 'pr2_msgs'
==> Processing plain cmake package: 'python_orocos_kdl'
==> Creating build directory: 'build_isolated/python_orocos_kdl/install'
==> Building with env: '/opt/jsk/System/ros1_inst/env.sh'
==> cmake /home/user/arm64v8_ws_system/src/orocos_kinematics_dynamics/python_orocos_kdl -DCMAKE_INSTALL_PREFIX=/opt/jsk/System/ros1_inst -DCMAKE_BUILD_TYPE=Release -DCATKIN_ENABLE_TESTING=FALSE -DEUSLISP_WITHOUT_DISPLAY=TRUE -DDISABLE_DOCUMENTATION=1 -G Unix Makefiles in '/home/user/arm64v8_ws_system/build_isolated/python_orocos_kdl/install'
'import usercustomize' failed; use -v for traceback
'import usercustomize' failed; use -v for traceback
'import usercustomize' failed; use -v for traceback
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2")
-- Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython2.7.so (found suitable version "2.7.17", minimum required is "2.7")
'import usercustomize' failed; use -v for traceback
'import usercustomize' failed; use -v for traceback
Traceback (most recent call last):
File "/home/user/arm64v8_ws_system/src/orocos_kinematics_dynamics/python_orocos_kdl/cmake/FindSIP.py", line 8, in <module>
import sipconfig
ImportError: No module named sipconfig
CMake Error at cmake/FindSIP.cmake:63 (MESSAGE):
Could not find SIP
Call Stack (most recent call first):
CMakeLists.txt:14 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/user/arm64v8_ws_system/build_isolated/python_orocos_kdl/install/CMakeFiles/CMakeOutput.log".
<== Failed to process package 'python_orocos_kdl':
Command '['/opt/jsk/System/ros1_inst/env.sh', 'cmake', '/home/user/arm64v8_ws_system/src/orocos_kinematics_dynamics/python_orocos_kdl', '-DCMAKE_INSTALL_PREFIX=/opt/jsk/System/ros1_inst', '-DCMAKE_BUILD_TYPE=Release', '-DCATKIN_ENABLE_TESTING=FALSE', '-DEUSLISP_WITHOUT_DISPLAY=TRUE', '-DDISABLE_DOCUMENTATION=1', '-G', 'Unix Makefiles']' returned non-zero exit status 1
Reproduce this error by running:
==> cd /home/user/arm64v8_ws_system/build_isolated/python_orocos_kdl && /opt/jsk/System/ros1_inst/env.sh cmake /home/user/arm64v8_ws_system/src/orocos_kinematics_dynamics/python_orocos_kdl -DCMAKE_INSTALL_PREFIX=/opt/jsk/System/ros1_inst -DCMAKE_BUILD_TYPE=Release -DCATKIN_ENABLE_TESTING=FALSE -DEUSLISP_WITHOUT_DISPLAY=TRUE -DDISABLE_DOCUMENTATION=1 -G 'Unix Makefiles'
Command failed, exiting.
make: *** [Makefile:15: system] Error 1
|
pass $PASS before sudo
sorry I forget to add usercustomze.py (k-okada@3064dca), please use latest version. You may also need to remove existing |
Thank you. I have confirmed that |
Enable to share single image with multiple users. Create user in run-time to use same UDI/GID as host user. See https://qiita.com/ktamido/items/8d7b7eddbd88bd1bbf99
Use sitecustomize.py instead of setting PTTHONPATH based on f9d4bac
add catkin_virutalenv with python3-rospkg-modules as ./build_ros1_dependenceis.sh
some fix for mac
based on https://github.com/iory/jsk_robot/tree/unitree-virtualenv?rgh-link-date=2023-10-06T08%3A11%3A55Z
Changes:
da4409a (iory, 1 year, 2 months ago)
[jsk_unitree_startup/cross] Add OPTIONS to passthrough user id for mac
compatibility
5b17723 (iory, 1 year, 2 months ago)
[jsk_unitree_startup/cross] Add comment for reachability
0fd88f2 (iory, 1 year, 2 months ago)
[jsk_unitree_startup] Use perl instead of 'grep -Po'