# Joystick package

This is a repository which makes it possible to navigate the vessel with a joystick. The node is working on joy\_node from the ROS enviroment.

Here is the code that will install the package.

```
cd catkin_ws/src
git clone https://github.com/Njord-The-Autonomous-Ship-Challenge/joy_ctrl.git
chmod +x ~/catkin_ws/src/joy_ctrl/install_requirements.sh
chmod +x ~/catkin_ws/src/joy_ctrl/scripts/joy_ctrl_client.py
cd joy_ctrl
./install_requirements.sh
```

Here is how to launch the node (needs to be launched after a scenario is launched).

```
source catkin_ws/devel/setup.bash
roslaunch catkin_ws/src/joy_ctrl/launch/launch_joystick_stack.launch
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://njord.gitbook.io/digital-competition-2023/usage/joystick-package.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
