Skip to content

ReconCycle/reconcycle_flexbe

Repository files navigation

Reconcycle states

This repository includes python FlexBe states for the ReconCycle project

Table of contents

Introduction

FlexBE helps us to create complex robot behaviors without the need for manually coding them. States define what should be done by a behavior. They are grouped as statemachines, defining the control flow when the behavior is executed. Therefore, each state declares a set of outcomes which represent possible results of execution

This repository includes FlexBe states python files

Python files

Python files represent FlexBe states which are joined together into one behavior.

ROS 1

Behaviors example

Behaviors are modeled as hierarchical state machines where states correspond to active actions and transitions describe the reaction to outcomes.

A behavior file is constructed from python files. The file is run by FlexBe behavior engine.

More information about FlexBe behavior engine is avaliable here.

Simulation and FlexBE app

In order for examples to work, a pre-build panda_dockers has to be build and run:

Example commands for a joint_min_jerk_action_client:

  • Create and image from FlexBE Dockerfile (FlexBE Dockerfile):

    • docker build --no-cache -t reconcycle/states:states .
  • Run FlexBE app(panda_dockers nad sim_controllers_interface must run before running with this configuration):

    • docker run -it --name rcstate --network panda-simulator-gzweb_ros -p 9092:9092 -e ROS_MASTER_URI=http://rosmaster:11311 reconcycle/states:states roslaunch flexbe_app flexbe_full.launch
  • Run just FlexBE app without gazebo simulator:

    • docker run -it --name rcstate -p 9092:9092 -e reconcycle/states:states roslaunch flexbe_app flexbe_full.launch
  • When panda_dockers is running and action server is running (sim_controllers_interface), GUI can be access via browser:

  • For simple move panda in Gzweb simulator a test MoveJointMinJerkExample is provided. The behavior is available under Load Behavior in FlexBe app GUI. Keep in mind that all the above docker files must be build and run before FlexBE container is created.

An example of states inside behavior model. here.

About

FlexBe states for the ReconCycle project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors