Skip to content

NITIC-Robot-Club/nhk2025b_robotcontroller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NHK2025B Controller

How to Get Cotroller APK

Platforms

OS:

- Ubuntu 22.04 (bash)

ROS2 distribution:

- Humble

Unity Editor Version:

- 2022.3.62f1

Required Editor Modules:

- Android Build Support
    - OpenJDK
    - Android SDK & NDK Tools
- 日本語

Build This Project

  • Clone this project.
git clone git@github.com:NITIC-Robot-Club/nhk2025b_robotcontroller.git
  • Create unity project from cloned disk.
  • Open File > Buid Settings.
  • Switch platform to Android.
  • Check a Development Build box.
  • You can also download the latest build from releases.

How to Build for Controller

Step0 Environmental Preparation(optionally)

  • Install softwares
# Install rmw and tests-msgs for your ROS2 distribution
sudo apt-get update
sudo apt install -y ros-humble-test-msgs
sudo apt install -y ros-humble-fastrtps ros-humble-rmw-fastrtps-cpp
sudo apt install -y ros-humble-cyclonedds ros-humble-rmw-cyclonedds-cpp

# Install vcstool package
curl -s https://packagecloud.io/install/repositories/dirk-thomas/vcstool/script.deb.sh | sudo bash
sudo apt-get update
sudo apt-get install -y python3-vcstool

# Install dotnet
sudo apt-get install -y apt-transport-https

sudo apt remove dotnet* aspnetcore* netstandard*
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo apt update
sudo apt install -y dotnet-sdk-6.0
  • It is convenient to include the following command.
echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc

Step1 Make a Project Folders

  • The Ros2 For Unity provided by RobotecAI only supports Linux or Windows, so you will need to use a project created by a volunteer to use it on Android.
cd
mkdir ros2-for-unity_ws
cd ~/ros2-for-unity_ws
mkdir linux_windows_build
mkdir android_build

Step2 Clone Ros2 For Unity Projects

Build for Linux or Windows

cd ~/ros2-for-unity_ws/linux_windows_build
git clone git@github.com:NITIC-Robot-Club/ros2-for-unity.git
cd ros2-for-unity
./pull_repositories.sh
  • BuildRos2 For Unity.
# standalone mode
./build.sh -s

# overlay mode
./build.sh

# recommend
./build.sh -s -c
  • You can add --clean-install or -c.
  • Unity Asset is ready to import into your Unity project. You can find it in install/asset/ directory.

Build for Android

cd ~/ros2-for-unity_ws/android_build
git clone git@github.com:NITIC-Robot-Club/ros2-for-unity-for-android.git
cd ros2-for-unity-for-android
./pull_repositories.sh
  • BuildRos2 For Unity.
# standalone mode
./build.sh -p ~/Unity/Hub/Editor/2022.3.16f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK -s

# overlay mode
./build.sh -p ~/Unity/Hub/Editor/2022.3.16f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK

# recommend
./build.sh -p ~/Unity/Hub/Editor/2022.3.16f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK -s -c
  • You can add --clean-install or -c.
  • Unity Asset is ready to import into your Unity project. You can find it in install/asset/ directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published