Giter Club home page Giter Club logo

bt_ros1's Introduction

BT_ros1

Behavior Tree example for ROS1

Build up environment

  1. git clone the repo.
mkdir -p ~/ros1_bt_ws/src
cd ~/ros1_bt_ws/src
git clone https://github.com/Adlink-ROS/BT_ros1.git
  1. Install dependencies
cd ~/ros1_bt_ws
rosdep install --from-paths src --ignore-src -r -y
  1. Build
catkin_make
# If you want to build with OpenVINO support
catkin_make --cmake-args -DBUILD_OPENVINO=ON

Usage

We use NeuronBot2 as example. We will run Gazebo with NeuronBot2 and show a simple BT example.

The BT example (refer to bt_nav_mememan_interrupt.xml) will make NeuronBot2 move between Goal_a and Goal_b. If receiving /interrupt_event, which is gohome, then NeuronBot2 will move to Goal_c.

  • Open 1st terminal and run mememan world. (melodic environment)
source ~/neuronbot2_ros1_ws/devel/setup.bash
export GAZEBO_MODEL_PATH=~/neuronbot2_ros1_ws/src/neuronbot2/neuronbot2_gazebo/models
roslaunch neuronbot2_gazebo neuronbot2_world.launch world_model:=mememan_world.model
  • Open 2nd terminal and run navigation. (melodic environment)
source ~/neuronbot2_ros1_ws/devel/setup.bash
roslaunch neuronbot2_nav neuronbot2_nav.launch map_name:=$HOME/neuronbot2_ros1_ws/src/neuronbot2/neuronbot2_nav/maps/mememan.yaml open_rviz:=true
  • Open 3rd termainal and run BT. (melodic environment)
source ~/ros1_bt_ws/devel/setup.bash
rosrun bt_sample node _file:=$HOME/ros1_bt_ws/src/BT_ros1/bt_xml/bt_nav_mememan_interrupt.xml
  • Open 4th terminal and pub interrupt event. (melodic environment)
rostopic pub /interrupt_event std_msgs/String "gohome"

bt_ros1's People

Contributors

airuchen avatar evshary avatar jeffrey870517 avatar qqting 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.