Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

.launch.py file in ros2

from launch import LaunchDescription
from launch_ros.actions import Node

def generate_launch_description():
    return LaunchDescription([
        Node(
            package='turtlesim',
            namespace='turtlesim1',
            executable='turtlesim_node',
            name='sim'
        ),
        Node(
            package='turtlesim',
            namespace='turtlesim2',
            executable='turtlesim_node',
            name='sim'
        ),
        Node(
            package='turtlesim',
            executable='mimic',
            name='mimic',
            remappings=[
                ('/input/pose', '/turtlesim1/turtle1/pose'),
                ('/output/cmd_vel', '/turtlesim2/turtle1/cmd_vel'),
            ]
        )
    ])
Comment

PREVIOUS NEXT
Code Example
Python :: python print value and variable name 
Python :: convert csv file into python list 
Python :: hstack 
Python :: pyqt button clicked connect 
Python :: how print 2 decimal in python 
Python :: flask wtforms multiple select 
Python :: change django administration text 
Python :: turn python script into exe 
Python :: add two numbers in python 
Python :: write lines python with line breaks 
Python :: python password checker 
Python :: How to join train and Test dataset in python 
Python :: python b string 
Python :: relativefrequencies of the unique values pandas 
Python :: python argparse custom categories 
Python :: replace matrix values python 
Python :: django form list option 
Python :: python edit string variable 
Python :: remove zeros from decimal python 
Python :: create new column pandas lambda function assign apply 
Python :: How to take space-separated integer input in Python 3 
Python :: function for detecting outliers in python 
Python :: enumerate string pythonm 
Python :: python return value from single cell dataframe 
Python :: how to slice a string in python 
Python :: python program to check if binary representation is a palindrome 
Python :: zip multiple lists 
Python :: infinite while python 
Python :: django datepicker 
Python :: hostname python 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =