Giter VIP home page Giter VIP logo

scrimmage_ros's Introduction

SCRIMMAGE ROS

This repository provides an example for using the SCRIMMAGE simulator with the ROS 2D Navigation Stack. The interface between SCRIMMAGE and ROS is almost identical to the interface between stage_ros and ROS.

Prerequisites

You will need to build the SCRIMMAGE simulator

Build

  1. Setup a ROS catkin workspace, if you don't have one already:

     $ mkdir -p ~/catkin_ws/src && cd ~/catkin_ws/
     $ catkin_make
    
  2. Clone this repo into into ~/catkin_ws/src:

     $ cd ~/catkin_ws/src
     $ git clone https://github.com/SyllogismRXS/scrimmage_ros.git
    
  3. Build it:

     $ cd ~/catkin_ws
     $ catkin_make
    

Install ROS 2D Navigation Stack Dependencies

$ sudo apt-get install ros-kinetic-nav2d ros-kinetic-rviz \
    ros-kinetic-map-server ros-kinetic-move-base ros-kinetic-global-planner

Run Example

The example SCRIMMAGE mission / roslaunch simulates two ground robots running the ROS 2D Navigation stack in a simple maze world. It's probably a good idea to open a new terminal at this point, so that your terminal has access to any new SCRIMMAGE environment variables.

$ source ~/catkin_ws/devel/setup.bash               # source the catkin_ws
$ roslaunch scrimmage_ros multiple-robots.launch    # launch scrimmage/ros

The SCRIMMAGE simulator controls the time, generates sensor data, and integrates the motion models. To kill the simulation, type "CTRL + c" in the window that you ran the roslaunch command from.

Notes

Robot Initial Positions

The robots will be initialized using the positions in the scrimmage mission file (e.g., ros-ex1.xml), but you can specify an initial pose estimate for each robot in the multiple-robots.launch file. You will want to modify the initial pose estimates to match the actual poses in the scrimmage mission file. This may be automated in the future, but it's manual configuration for now.

Map File

You need to specify the same map file in both multiple-robots.launch (name="map_name" default="simple-maze-1") and the ros-ex1.xml scrimmage mission file (e.g., entity_interaction map="simple-maze-1").

Robot Transforms

You don't need to use an URDF file for a simple ground robot with a few sensors. Specify the sensor transform from the robot's center using the xyz and rpy XML attribute tags of a sensor tag.

scrimmage_ros's People

Contributors

crichardson332 avatar esquires avatar jamesmichaelmatthews avatar sgarciav avatar syllogismrxs avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

scrimmage_ros's Issues

dynamic reconfigure conflicts

When running the dynamic_param_client node in parallel with a different node that is also listening to a .cfg file, a conflict in parameters pops up given that the scrimmage_ros node is listening to all nodes even if they live in different namespaces.

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.