From c55cd6389ee74d164747727a324e4cd1ce9a1144 Mon Sep 17 00:00:00 2001 From: Mehul Goel Date: Tue, 15 Oct 2024 21:01:18 -0700 Subject: [PATCH] autobuild and first node --- Dockerfile | 4 +++- rb_ws/src/buggy/buggy/hello_world.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a449660..6725e77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,9 @@ RUN pip3 install -r python-requirements.txt RUN echo 'source "/opt/ros/humble/setup.bash" --' >> ~/.bashrc && \ - echo 'cd rb_ws' >> ~/.bashrc + echo 'cd rb_ws' >> ~/.bashrc && \ + echo 'colcon build --symlink-install' >> ~/.bashrc && \ + echo 'source install/local_setup.bash' >> ~/.bashrc # RUN echo 'source "/opt/ros/humble/setup.bash" --' >> ~/.bashrc && \ # echo 'cd rb_ws' >> ~/.bashrc && \ # echo 'catkin_make >/dev/null' >> ~/.bashrc && \ diff --git a/rb_ws/src/buggy/buggy/hello_world.py b/rb_ws/src/buggy/buggy/hello_world.py index 82e13fc..0a119aa 100644 --- a/rb_ws/src/buggy/buggy/hello_world.py +++ b/rb_ws/src/buggy/buggy/hello_world.py @@ -1,5 +1,5 @@ def main(): - print('Hi from buggy.') + print('Hi from buggy. Hello again') if __name__ == '__main__':