Skip to content

ROS2 package for Kerbal Space Program based on the kRPC mod.

Notifications You must be signed in to change notification settings

g0mb4/ksp_bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ksp_bridge

ROS2 package for Kerbal Space Program based on the kRPC mod.

Works with:

  • KSP 1.12.3

  • kRPC 0.4.9

  • ROS2 Foxy

  • Ubuntu 20.04

Installation

The installation of the kRPC mod and it's dependencies.

Libraries

Installation of the protobuf library:

sudo apt update
sudo apt install -y libprotobuf-dev

Installation of the ASIO standalone library:

wget https://sourceforge.net/projects/asio/files/asio/1.22.1%20%28Stable%29/asio-1.22.1.tar.bz2
tar xf asio-1.22.1.tar.bz2
cd asio-1.22.1
./configure
make
sudo make install

kRPC - Kerbal Space Program

mkdir krpc; cd krpc
wget https://github.com/nullprofile/krpc/releases/download/0.4.9-1.12.1/krpc-0.4.9-1.12.1.zip
unzip krpc-0.4.9-1.12.1.zip

Copy the GameData/kRPC directory into the GameData directory of Kerbal Space Program. The path can be obtained through Steam (Right Click->Manage->Browse local files).

kRPC - C++ library

cd krpc/client
unzip krpc-cpp-0.4.9.zip
cd krpc-cpp-0.4.9
mkdir build; cd build
cmake ..
make
sudo make install
sudo ldconfig

Compilation

Assuming the ROS2 workspace is ~/ros2_ws.

cd ~/ros2_ws/src
git clone https://github.com/g0mb4/ksp_bridge.git
cd ..
colcon build
source ~/.bashrc

Server settings

up_and_down_assembly

Note: Max. time per update is required to be high, but it affects the framerate.

Usage

See examples.

About

ROS2 package for Kerbal Space Program based on the kRPC mod.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published