Giter Site home page Giter Site logo

rmuc21_ignition_simulator's Introduction

rmuc2021_ignition_simulator

1.简介

rmuc2021_ignition_simulator是基于Ignition Gazebo的仿真环境,为RoboMaster University Championship 2021中的机器人算法开发提供仿真环境,加快开发效率,目前仅提供简易场地。

  • RoboMaster University Championship 2021简易场地模型:
    • 模型来自于robomaster BBS论坛官方发布 (2020.11.27版),若存在区别和误差,以官方为准。
    • 不包括基地,前哨站,能量机关等复杂设施,也不包含场地纹理。

注意:Ignition Gazebo目前依然处于快速开发期,仿真功能不完善,且可能存在Bug。

2.使用说明

环境配置

ROS2和Ignition版本

  • ROS2:galactic
  • Ignition:Edifice
# install ros-ign package
sudo apt-get install ros-foxy-ros-ign
# sdf xml macro tool
pip install xmacro
# cd src directory of ros2 workspace 
git clone https://github.com/robomaster-oss/rmoss_interfaces
git clone https://github.com/robomaster-oss/rmoss_ign
git clone https://github.com/robomaster-oss/rmoss_ign_resources
git clone https://github.com/robomaster-oss/rmua19_ignition_simulator
git clone https://github.com/robomaster-oss/rmuc21_ignition_simulator
# cd ros2 workspace
colcon build
  • 使用rmua19_ignition_simulator中的标准步兵机器人,所以依赖于rmua19_ignition_simulator.

启动仿真环境

ros2 launch rmuc21_ignition_simulator standard_robot1v1.launch.py 
  • 注意:需要点击ignition界面上的橙红色的启动按钮

包含两个步兵机器人(red1和blue1)

控制机器人移动 (以red1步兵机器人为例)

ros2 run rmoss_ign_base test_chassis_cmd.py  --ros-args -r __ns:=/standard_robot_red1 -p v:=0.3 -p w:=0.3

根据以下提示输入

This node takes keypresses from the keyboard and publishes them
as ChassisCmd messages.
---------------------------
Moving around:
        w    
   a    s    d
turn : '[' for left  ']' for right
stop : space key
---------------------------
CTRL-C to quit

控制机器人云台 (以red1步兵机器人为例)

ros2 run rmoss_ign_base test_gimbal_cmd.py  --ros-args -r __ns:=/standard_robot_red1

根据以下提示输入

This node takes keypresses from the keyboard and publishes them
as GimbalCmd messages.
---------------------------
contorl around:
        w    
   a    s    d
change  interval : '[' to decrease,  ']' to increase
---------------------------
CTRL-C to quit

云台相机图像查看

ros2 run rqt_image_view rqt_image_view 
  • 选择相应topic即可

3.维护者及开源许可证

maintainer: Zhenpeng Ge, [email protected]

rmuc2021_ignition_simulator is provided under MIT License.

rmuc21_ignition_simulator's People

Contributors

gezp avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

william-ywh

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.