forked from space-ros/demos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update canadarm_demo to manage gazebosim and isaacsim environments
Related to space-ros#48
- Loading branch information
1 parent
ccf67a1
commit 140997e
Showing
5 changed files
with
44 additions
and
73 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 |
---|---|---|
@@ -1,24 +1,30 @@ | ||
"""Canadarm2 demo launch file.""" | ||
|
||
from launch import LaunchDescription # type: ignore | ||
|
||
from launch.actions import DeclareLaunchArgument # type: ignore | ||
from launch.substitutions import LaunchConfiguration # type: ignore | ||
from launch_ros.actions import Node # type: ignore | ||
|
||
|
||
def generate_launch_description(): | ||
"""Generate launch description with multiple components.""" | ||
|
||
# run_node = Node( | ||
# package="canadarm", | ||
# executable="move_joint_server", | ||
# output='screen' | ||
# ) | ||
environment_arg = DeclareLaunchArgument( | ||
"environment", | ||
default_value="gazebosim", | ||
description="Environment to run the node in", | ||
) | ||
|
||
run_move_arm = Node(package="canadarm_demo", executable="move_arm", output="screen") | ||
run_move_arm = Node( | ||
package="canadarm_demo", | ||
executable="move_arm", | ||
output="screen", | ||
parameters=[{"environment": LaunchConfiguration("environment")}], | ||
) | ||
|
||
return LaunchDescription( | ||
[ | ||
# run_node, | ||
environment_arg, | ||
run_move_arm, | ||
] | ||
) |
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