-
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.
NODE It has the same problem as following link ros2/launch#204 All nodes have the same node name...
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 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,20 @@ | ||
import launch | ||
import launch_ros | ||
|
||
_PKG_NAME = 'image_proc_chain' | ||
|
||
|
||
def generate_launch_description(): | ||
chain_num = launch.substitutions.LaunchConfiguration('chain_num') | ||
|
||
return launch.LaunchDescription([ | ||
launch.actions.DeclareLaunchArgument( | ||
'chain_num', | ||
default_value='3', | ||
description='Number of image processor(chain_piece)'), | ||
launch_ros.actions.Node( | ||
package=_PKG_NAME, | ||
node_executable=_PKG_NAME+'_chain_processor_node', | ||
node_name='chain_processor', | ||
output='screen', | ||
parameters=[{'chain_num': chain_num}])]) |
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