Skip to content

Commit

Permalink
Update Dockerfile and demo setup instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobRoyce committed Aug 10, 2024
1 parent b4086e2 commit 3b75091
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ RUN apt-get update && apt-get install -y \

# RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y python3.9
RUN apt-get update && apt-get install -y python3-pip default-jre feh
RUN python3 -m pip install -U python-dotenv catkin_tools && \
python3.9 -m pip install -U langchain langchain-openai python-dotenv numpy
RUN apt-get update && apt-get install -y python3-pip
RUN python3 -m pip install -U python-dotenv catkin_tools
RUN python3.9 -m pip install -U jpl-rosa

# Configure ROS
RUN rosdep update
Expand All @@ -37,7 +37,6 @@ RUN echo "export ROSLAUNCH_SSH_UNKNOWN=1" >> /root/.bashrc

COPY . /app/
WORKDIR /app/
RUN python3.9 -m pip install --user -e .

# Run roscore in the background, then run `rosrun turtlesim turtlesim_node` in a new terminal, finally run main.py in a new terminal
CMD /bin/bash -c 'source /opt/ros/noetic/setup.bash && \
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ for ROS2 variants.


# TurtleSim Demo
We have included a demo that uses ROSA to control the TurtleSim simulator. You can run the demo using the following command:
We have included a demo that uses ROSA to control the TurtleSim simulator.

## Configure your LLM
You will need to configure your LLM by setting the environment variables found in `.env`. You will also need
to ensure the correct LLM is configured in the `src/turtle_agent/turtle_agent.py` file, specifically in the
`get_llm()` function.

After that is configured properly, you can run the demo using the following command:

```bash
./demo.sh
Expand Down
1 change: 1 addition & 0 deletions src/turtle_agent/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jpl-rosa

0 comments on commit 3b75091

Please sign in to comment.