Giter Club home page Giter Club logo

rmul24_gazebo_simulator's Introduction

rmul24_gazebo_simulator

State-of-the-art Shitcode

Still in develop, shit code

简介

rmul24_gazebo_simulator 是基于 Gazebo (Ignition 字母版本) 的仿真环境,为 RoboMaster University League 中的机器人算法开发提供仿真环境,方便测试 AI 算法,加快开发效率。

目前 rmul24_gazebo_simulator 还不完善,仅提供以下功能:

在 rmua19 标准机器人(rmua19_standard_robot)上增加相关传感器,构建不同机器人模型:

  • rmua19_standard_robot_a:搭载云台相机 industrial_camera 和搭载激光雷达 rplidar_a2,其中相机放置有在 yaw 轴。

  • rmua19_standard_robot_b:搭载云台相机 industrial_camera 和搭载激光雷达 rplidar_a2,其中相机放置有在 pitch 轴。

  • rmul24_sentry_robot:搭载云台相机 industrial_camera 和搭载激光雷达 rplidar_a2 和 Livox mid360,其中相机放置有在 pitch 轴

构建 RoboMaster University League 2024 简易场地 (models/RMUL_2024):

  • 在 world 中使用 PerformerDetector 插件实现区域 RFID 检测。仍在开发中,尚未与裁判系统对接

一. 基本使用

1.1 环境配置

  • ROS2 版本要求: Humble

  • Gazebo 仿真器版本要求: Fortress

cd ros_ws/src

git clone https://github.com/LihanChen2004/rmoss_interfaces.git
git clone https://github.com/LihanChen2004/rmoss_core.git
git clone https://github.com/LihanChen2004/rmoss_gazebo.git
git clone https://github.com/LihanChen2004/rmoss_gz_resources.git --depth=1
git clone https://github.com/gezp/sdformat_tools.git
git clone https://github.com/LihanChen2004/rmul24_gazebo_simulator.git

pip install xmacro

1.2 启动仿真环境

  1. 启动仿真环境

    ros2 launch rmul24_gazebo_simulator develop.launch.py

    注意:需要点击 Gazebo 左下角橙红色的 启动 按钮

  2. 控制机器人移动

    ros2 run rmoss_gz_base test_chassis_cmd.py --ros-args -r __ns:=/red_standard_robot1/robot_base -p v:=0.3 -p w:=0.3
    #根据提示进行输入,支持平移与自旋
  3. 控制机器人云台

    ros2 run rmoss_gz_base test_gimbal_cmd.py --ros-args -r __ns:=/red_standard_robot1/robot_base
    #根据提示进行输入,支持绝对角度控制
  4. 机器人射击

    ros2 run rmoss_gz_base test_shoot_cmd.py --ros-args -r __ns:=/red_standard_robot1/robot_base
    #根据提示进行输入
  5. 运行裁判系统

    ros2 run rmul24_gazebo_simulator simple_competition_1v1.py

    弹丸伤害为 10,每个机器人HP为 500 ,直到 HP 为 0 时,裁判系统输出胜利者,程序退出。(可重新运行开始)

    通过解析并处理攻击信息 /referee_system/attack_info (包括射击者信息以及击中目标信息)实现裁判功能

TODO

考试月启动... 2024.6.28~7.12

  • mid360 改名为 livox_mid360

  • TF Tree 都加上命名空间

  • 删除 ignition plugin 中的 ignition_frame_id

  • launch 中分离世界生成和机器人生成

配套导航仿真仓库

本仿真包可以与 navigation2 结合使用,实现多机器人的导航功能。

详见 rm_nav_bringup

维护者及开源许可证

Maintainer: Lihan Chen, [email protected]

rmul24_gazebo_simulator is provided under Apache License 2.0.

rmul24_gazebo_simulator's People

Contributors

lihanchen2004 avatar xiezik avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.