Skip to content

morningsunshine0401/Ruun_protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 

Repository files navigation

Ruun protocol

The RUUN protocol Project aims to create a robust and efficient communication protocol between UAVs. This protocol allows for real-time data exchange and ensures data integrity through message encryption and checksums. The project leverages ROS (Robot Operating System) for handling the communication framework.

1. Project Overview

The project consists of the following components:

I. ruun_protocol_pkg:

This package contains the source code for the communication protocol implementation, which includes sending and receiving messages, as well as handling message integrity through checksums.

Files:

I. ruun_protocol.cpp:

This file contains code for ROS to subscribe to topics from PX4, convert the subscribed data into a Ruun_Message format, encrypt it, and then send the message using UDP.

II. ruun_protocol_recv.cpp:

This file contains code for receiving encrypted Ruun_Message instances via UDP, decrypting them, and then publishing the corresponding MAVROS message topics using ROS.

III. ruun.h:

A header file that defines the Ruun_Message format used in the Ruun protocol.

IV. DoubleXORCipher.h:

A header file that provides functions for encrypting and decrypting messages using the Double XOR Cipher algorithm.

2. Methods

  1. Socket Communication: The project uses UDP sockets for sending and receiving messages between the UAVs.

  2. Message Integrity: To ensure the integrity of the messages exchanged, a CRC-16 (Cyclic Redundancy Check) checksum is calculated and included in each message.

  3. Encryption and Decryption: The ruun_crypto module handles the encryption and decryption of messages using a simple XOR calculation. This ensures secure communication between the UAVs.

3. Setting Up Your Workspace

To set up your workspace to use this project, follow the steps below:

  1. Clone the project repository into your ROS workspace's src directory: cd ~/ruun_ws/src git clone https://github.com/morningsunshine0401/Ruun_protocol.git

Replace your_ros_workspace with the path to your ROS workspace and your_username with your GitHub username.

  1. Install the required dependencies:

    sudo apt-get install ros-melodic-ros-base

Replace melodic with your ROS distribution if you are using a different version. Also, make sure to install any additional dependencies mentioned in the package.xml files.

  1. Build the project:

    cd ~/ruun_ws catkin_make

  2. Source the workspace:

    source devel/setup.bash

  3. Run the necessary nodes and launch files as specified in the project documentation.

You are now ready to use the RUUN Protocol in your ROS workspace. For more information on how to use the project's components and integrate them into your robotic system, refer to the project's documentation and example implementations.

About

Ruun_protocol: protocol master

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published