Package containing ROS messages for the european project GAUSS and some launch files
\ No newline at end of file
Package containing ROS messages for the european project GAUSS and some launch files.
## Integration tests
If you are a partner of the Gauss Europen project landing here for the integration tests, please visit this [documentation page](./docs/integration.md).
In the PC side we require the OS Ubuntu 16.04 and its corresponding ROS installation with the Kinetic version.
1. Install ROS as indicated in its [website](http://wiki.ros.org/kinetic/Installation/Ubuntu)
2. Install [ROS-Bridge](http://wiki.ros.org/rosbridge_suite) using the terminal command: `sudo apt-get install ros-kinetic-rosbridge-server`
### Raspberry PI side
In the Raspberry Pi we require to have a Linux base OS running.
1. Make sure Python 3 is installed. In a terminal type: `python3 --version`. The output of this command should indicate the Python version installed (`Python 3.7` most probably).
3. You will probably need other third party libraries when running the python script. They all can be installed using pip3.
### Preparing the hardware
1. Connect both machines via the Ethernet connection
2. Be sure that both machines can ping each other
3. Be aware of each machine's IP address
## Running an example
Here we detail, with an example, how the connection between the PC running ROS and the Raspberry can be done.
### PC-NUC (ROS side)
Here we will launch a ROS-node example contained within the tutorials of ROS that comes along any ROS installation. This node will publish messages of type `/std_msgs/String` in a topic called `/chatter`. In order to launch this node do the following:
#### Launch the publisher
1. Check that the ROS installation has been sourced by doing: `roscd`. If the command does not work do: `source /opt/ros/kinetic/setup.bash`
2. Check that the ROS-node example exists by doing `roscd roscpp_tutorials`. When doing this, the current folder should move to `/opt/ros/kinetic/share/roscpp_tutorials`.
3. Launch the node: `roslaunch roscpp_tutorials talker_listener.launch`
#### Launch the ROSBridge node
With the node running, in a separate terminal, launch the ROSbridge node: `roslaunch rosbridge_server rosbridge_websocket.launch`.
### Raspberry PI side
1. Save the following code snippet as a python script, e.g. `/home/pi/gauss_tests/test_rospylib.py`: