Rename. Add conga line launch file.

This commit is contained in:
jimmy committed 2025-11-28 14:57:48 -05:00
1 parent 878fc973ac
commit 26ab3c534d
8 files changed
+47 -19

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
import launch
import launch_ros.actions
def generate_launch_description():
parrots = []
for i in range(1, 10):
parrots.append(make_parrot(i))
return launch.LaunchDescription(parrots)
def make_parrot(index):
index_before = index - 1
parrot = launch_ros.actions.Node(
package='j7s_simple',
executable='j7s_parrot',
name='j7s_parrot_{}'.format(index),
parameters=[{
"name":"{}".format(index)
}],
remappings=[
("~/parrot_in", "parrot_{}".format(index_before)),
("~/parrot_out", "parrot_{}".format(index))
]
)
return parrot
+4 -4
View File
@@ -3,16 +3,16 @@ import launch_ros.actions
def generate_launch_description():
publisher_node = launch_ros.actions.Node(
package='j7s-simple',
executable='j7s-publisher',
package='j7s_simple',
executable='j7s_publisher',
name='j7s_publisher',
parameters=[{
"message":"Hello"
}]
)
parrot_node = launch_ros.actions.Node(
package='j7s-simple',
executable='j7s-parrot',
package='j7s_simple',
executable='j7s_parrot',
name='j7s_parrot_1',
parameters=[{
"name":"Polly"