splintered-reality / py_trees_ros

ROS extensions and implementations for py_trees
Other
158 stars 40 forks source link

Implementation on a custom bot on gazebo #177

Closed tejalbarnwal closed 2 years ago

tejalbarnwal commented 2 years ago

I wish to use py_trees_ros with a custom bot on the gazebo. For the beginning, I thought of just implementing a very simple behaviour of some combination of going forward, backward, left or right. How can I do this? Has somebody earlier used py_trees_ros with gazebo apart from the ros navigation application?

4 #7

@stonier please help

stonier commented 2 years ago

Aye, fairly common application. It's actually how we got started testing our fleet of robots. The py_tree application layer was agnostic whether it was a real robot or gazebo robot under the hood.

I don't have any ros2 code for this though. Basically you'll want to just set up the behaviours for communication with the ros2 navi interfaces (probably still actions?).

You can see a pretty similar example of this in:

The scan rotate action for instance, is very much like a typical move base action call you'd put out to a gazebo robot.

tejalbarnwal commented 2 years ago

Thank you so much for these resources in case of doubts, I will continue on this thread.

stonier commented 2 years ago

Closing out. Reopen if you wish to continue the discussion.