Skip to content

Commit 6093dd4

Browse files
committed
fix: fix minor error when building dockerfile
1 parent 8d346e3 commit 6093dd4

File tree

4 files changed

+30
-29
lines changed

4 files changed

+30
-29
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ pre-commit run --all-files
102102
Dockerfile을 통해 컨테이너를 빌드하고 실행할 수 있습니다.
103103

104104
```bash
105-
docker build -t stride-sim docker
105+
docker build -t stride-sim:v0.0.1 docker
106106

107-
docker run --name isaac-sim-4.0.0 --entrypoint bash -it --runtime=nvidia --gpus all -e "ACCEPT_EULA=Y" --network=host \
107+
docker run --name stride-sim-0.0.1 --entrypoint bash -it --runtime=nvidia --gpus all -e "ACCEPT_EULA=Y" --network=host \
108108
-e "PRIVACY_CONSENT=Y" \
109109
-e DISPLAY=$DISPLAY \
110110
-v /tmp/.X11-unix:/tmp/.X11-unix \
@@ -116,7 +116,7 @@ docker run --name isaac-sim-4.0.0 --entrypoint bash -it --runtime=nvidia --gpus
116116
-v ~/docker/isaac-sim/logs:/root/.nvidia-omniverse/logs:rw \
117117
-v ~/docker/isaac-sim/data:/root/.local/share/ov/data:rw \
118118
-v ~/docker/isaac-sim/documents:/root/Documents:rw \
119-
stride-sim
119+
stride-sim:v0.0.1
120120
```
121121

122122
## 라이선스

docker/Dockerfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,23 @@ RUN apt-get install -y build-essential gcc g++ sudo wget unzip software-properti
1515
RUN git clone https://github.com/AuTURBO/StrideSim.git && \
1616
git clone https://github.com/isaac-sim/IsaacLab.git -b v1.0.0
1717

18+
# pull lfs files in StrideSim
1819
WORKDIR /StrideSim
1920

20-
# update git lfs
2121
RUN git lfs fetch && \
2222
git lfs pull
2323

2424
# Install ROS 2 Humble
25-
RUN apt-get update && apt-get install -y locales software-properties-common && \
25+
RUN apt-get update && \
26+
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata && \
27+
apt-get install -y locales software-properties-common && \
2628
locale-gen en_US en_US.UTF-8 && \
2729
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
2830
add-apt-repository universe && \
2931
curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \
3032
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" > /etc/apt/sources.list.d/ros2.list && \
3133
apt-get update && \
32-
apt-get install -y ros-humble-desktop
34+
DEBIAN_FRONTEND=noninteractive apt-get install -y ros-humble-desktop
3335

3436
# Install Miniconda (latest version)
3537
WORKDIR /

exts/StrideSim/StrideSim/omnigraph_input.py

+21-22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import carb # noqa: F401
12
import omni.graph.core as og
2-
import carb
33

44

55
class ROS2OmniInput:
@@ -89,25 +89,24 @@ def connect_nodes(self, connections):
8989
{self._keys.CONNECT: connections},
9090
)
9191

92+
9293
# TODO: 여기서부터 다시 작업~
93-
def setup_graph_monitoring():
94-
# Get a handle to the graph
95-
keys = og.Controller.Keys
96-
(graph_handle, _, _, _) = og.Controller.edit({"graph_path": "/action_graph_input"})
97-
98-
# Access the output attribute
99-
output_attr = og.Controller.attribute(
100-
"/action_graph_input/Ros_Twist_sub.outputs:angularVelocity"
101-
)
102-
103-
# Define callback
104-
def on_value_change(attr):
105-
new_value = attr.get()
106-
carb.log_info(f"Output value updated: {new_value}")
107-
108-
# Register callback
109-
output_attr.add_value_changed_fn(on_value_change)
110-
111-
# Get the initial value
112-
initial_value = output_attr.get()
113-
carb.log_info(f"Initial value: {initial_value}")
94+
# def setup_graph_monitoring():
95+
# # Get a handle to the graph
96+
# keys = og.Controller.Keys
97+
# (graph_handle, _, _, _) = og.Controller.edit({"graph_path": "/action_graph_input"})
98+
99+
# # Access the output attribute
100+
# output_attr = og.Controller.attribute("/action_graph_input/Ros_Twist_sub.outputs:angularVelocity")
101+
102+
# # Define callback
103+
# def on_value_change(attr):
104+
# new_value = attr.get()
105+
# carb.log_info(f"Output value updated: {new_value}")
106+
107+
# # Register callback
108+
# output_attr.add_value_changed_fn(on_value_change)
109+
110+
# # Get the initial value
111+
# initial_value = output_attr.get()
112+
# carb.log_info(f"Initial value: {initial_value}")

exts/StrideSim/StrideSim/omnigraph_output.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import omni.graph.core as og
22

33

4-
class ROS2OmniOutput():
4+
class ROS2OmniOutput:
55
def __init__(self, prim_paths: dict):
66
super().__init__()
77
self._prim_paths = self.initialize_prim_paths(prim_paths)

0 commit comments

Comments
 (0)