Skip to content

raybeak/py_bt_ros

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

107 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py_bt_ros

A minimal example showing how to use the Behaviour Tree runtime with ROS 2 through a turtlesim scenario.

Simple Example (Turtlesim Navigation)

Launch Turtlesim

ros2 run turtlesim turtlesim_node

Spawn a Target Turtle

ros2 service call /spawn turtlesim/srv/Spawn "{x: 5.5, y: 5.5, theta: 0.0, name: 'turtle_target'}"

Teleoperate the Target Turtle

ros2 run turtlesim turtle_teleop_key --ros-args -r /turtle1/cmd_vel:=/turtle_target/cmd_vel

Move the spawned turtle using keyboard input (The original turtle /turtle1 will be controlled by Behaviour Tree)

Run Turtle1 Action Server

python3 scenarios/example_turtlesim/turtle_nav_action_server.py --ns /turtle1

Run Behaviour Tree Controller

python3 main.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%