-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,650 additions
and
1,086 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<root BTCPP_format="4" | ||
main_tree_to_execute="MainTree"> | ||
<BehaviorTree ID="MainTree"> | ||
<Delay delay_msec="2000"> | ||
<Nav2Client goal="-0.579;-1.341;0.0;1.0"/> | ||
</Delay> | ||
</BehaviorTree> | ||
|
||
<BehaviorTree ID="MoveRobot"> | ||
<Sequence name="SetGoal"> | ||
<Nav2Client goal="{target}"/> | ||
</Sequence> | ||
</BehaviorTree> | ||
|
||
<!-- Description of Node Models (used by Groot) --> | ||
<TreeNodesModel> | ||
<Action ID="Nav2Client" | ||
editable="true"> | ||
<input_port name="goal"/> | ||
</Action> | ||
</TreeNodesModel> | ||
|
||
</root> |
12 changes: 8 additions & 4 deletions
12
src/rove_navigation/config/twist_mux.yaml → src/rove_bringup/config/twist_mux.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
twist_mux: | ||
ros_parameters: | ||
/twist_mux: | ||
ros__parameters: | ||
topics: | ||
navigation: | ||
topic: cmd_vel | ||
topic: nav_vel | ||
timeout: 0.5 | ||
priority: 10 | ||
joystick: | ||
topic: cmd_vel_joy | ||
topic: joy_vel | ||
timeout: 0.5 | ||
priority: 20 | ||
others: | ||
topic: cmd_vel | ||
timeout: 0.5 | ||
priority: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import os | ||
|
||
from ament_index_python.packages import get_package_share_directory | ||
from launch import LaunchDescription | ||
from launch.substitutions import LaunchConfiguration | ||
from launch_ros.actions.node import Node | ||
|
||
def generate_launch_description(): | ||
# Path | ||
bt_xml_dir = os.path.join(get_package_share_directory('rove_bringup'), 'config') | ||
|
||
# Parameters | ||
bt_xml = LaunchConfiguration('bt_xml', default=bt_xml_dir+'/test.xml') | ||
|
||
behavior_tree = Node( | ||
package='bt_ros2', | ||
executable='bt_ros2', | ||
parameters=[{'bt_xml': bt_xml}], | ||
output='screen' | ||
) | ||
|
||
ld = LaunchDescription() | ||
ld.add_action(behavior_tree) | ||
return ld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.