Giter Club home page Giter Club logo

godot_rviz2's Introduction

godot_rviz2 (ROS2 humble)

Environment

  • Ubuntu 22.04
  • GPU
  • Autoware (step1 in How to use)

How to use

  1. Autoware build following here.

  2. Build godot from source

    1. install pre-requirements following here by godot.

      sudo apt-get install build-essential scons pkg-config libx11-dev libxcursor-dev libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm
    2. clone godot_rviz2

      git clone https://github.com/yukkysaito/godot_rviz2.git --recursive
    3. build godot with autoware and ros2 components.

      cd godot_rviz2/godot
      source <autoware_path>/install/setup.bash
      scons platform=linux -j8 custom_modules=../godot_rviz2
  3. Run Autoware and Godot

    1. Run Autoware

    2. Run Godot

      ./bin/godot.linuxbsd.editor.x86_64
    3. Import project and run.

      1. Import and select the project.godot file. imageimage

      2. Click run button. image

Key Config

key action
Space Show menu
Tab Switch view mode

How to customize

  1. Run Godot and import project from godot_rviz2/godot-project

    ./bin/godot.linuxbsd.editor.x86_64
  2. Edit on Godot GUI editor

  3. Click run button on top right on Godot GUI.

How to run from ROS2 launch

  1. Create godot_rviz2.py and modify path in cmd.
from launch_ros.actions import Node
 
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument, ExecuteProcess
from launch.substitutions import LaunchConfiguration

def generate_launch_description():
    godot_rviz2 = ExecuteProcess(
        cmd=[[
            '~/workspace/godot_rviz2/godot/bin/godot.linuxbsd.editor.x86_64 --path ~/workspace/godot_rviz2/godot-project'
        ]],
        shell=True
    )
    return LaunchDescription([godot_rviz2])
  1. Run ros2 command.
ros2 launch <path>/godot_rviz2.py

How to Export Binary(WIP)

  1. Create template
scons platform=linux -j8 tools=no target=template_release custom_modules=../godot_rviz2
  1. Select godot.linuxbsd.template_release.x86_64 in Custom template
  2. Export

TODO

  • Refactor codes
  • Simplified description of ros dependencies on SCon build system
  • Visualize autoware_auto_mapping_msgs::msg::HADMapBin directly

Reference

godot_rviz2's People

Contributors

khalilselyan avatar robodrome avatar yukkysaito avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

godot_rviz2's Issues

关于godot_rviz2是否能够导出为游戏项目的问题

嗨~您好!
我在你的项目基础上开发了一些功能,现在我想导出成为一个独立的游戏,能够快速部署在其他电脑上,而不是使用godot的编辑器来打开。请问他怎么和ros2进行通信呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.