# Launching the platform

1. In a terminal window in the virtual machine, enter:

```
source ~/catkin_ws/devel/setup.bash
roslaunch ~/catkin_ws/src/ros_scenario/launch/launch_njord_stack.launch
```

2\. Launch the project from Unity Hub. In the 'Project' tab in the lower menu, open the 'Models' folder and open the 'Njord' scene. Press the play button to initiate the simulation.

## Testing

To test if the sensor platform is functioning, open a third terminal window and run:

```
rviz
```

This will boot rviz. Click 'Add' in the bottom left corner, and under 'By Topic' there should be a list of camera topics (/optical). Selecting one of the image topics should display one of the camera views from Gemini.

The force controller can be tested by trying the following:\
Open a terminal window in the virtual machine and try running the following:

```
source catkin_ws/devel/setup.bash

rostopic pub /force_control ros_clients/GeneralizedForce "{x: 100.0 , y: 0.0 , z: 0.0 , k: 0.0 , m: 0.0 , n: 0.0}"
```

This method will continuously apply the requested force until the command is canceled (ctrl+c) and run again with different values.


---

# 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/launching-the-platform.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.
