initial commit, add gello software code and instructions
This commit is contained in:
parent
e7d842ad35
commit
18cc23a38e
70 changed files with 5875 additions and 4 deletions
39
scripts/launch.py
Normal file
39
scripts/launch.py
Normal file
|
@ -0,0 +1,39 @@
|
|||
import os
|
||||
import subprocess
|
||||
|
||||
current_file_path = os.path.abspath(__file__)
|
||||
|
||||
|
||||
def run_docker_container():
|
||||
user = os.getenv("USER")
|
||||
container_name = f"gello_{user}"
|
||||
gello_path = os.path.abspath(os.path.join(current_file_path, "../../"))
|
||||
volume_mapping = f"{gello_path}:/gello"
|
||||
|
||||
cmd = [
|
||||
"docker",
|
||||
"run",
|
||||
"--runtime=nvidia",
|
||||
"--rm",
|
||||
"--name",
|
||||
container_name,
|
||||
"--privileged",
|
||||
"--volume",
|
||||
volume_mapping,
|
||||
"--volume",
|
||||
"/home/gello:/homefolder",
|
||||
"--net=host",
|
||||
"--volume",
|
||||
"/dev/serial/by-id/:/dev/serial/by-id/",
|
||||
"-it",
|
||||
"gello:latest",
|
||||
"bash",
|
||||
"-c",
|
||||
"pip install -e third_party/DynamixelSDK/python && exec bash",
|
||||
]
|
||||
|
||||
subprocess.run(cmd)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
run_docker_container()
|
Loading…
Add table
Add a link
Reference in a new issue