otherFiles
This commit is contained in:
2
.bashrc
Normal file
2
.bashrc
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
source ~/ros2_humble/install/local_setup.bash
|
||||||
|
source ~/adipu_ws/install/setup.bash
|
||||||
16
chaseTurt_launch.py
Normal file
16
chaseTurt_launch.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
from launch import LaunchDescription
|
||||||
|
from launch_ros.actions import Node
|
||||||
|
|
||||||
|
def generate_launch_description():
|
||||||
|
return LaunchDescription([
|
||||||
|
Node(
|
||||||
|
package='adipu_turtlesim_controller',
|
||||||
|
executable='chaser_node',
|
||||||
|
name='turtle_chaser'
|
||||||
|
),
|
||||||
|
Node(
|
||||||
|
package='adipu_turtlesim_controller',
|
||||||
|
executable='chaser_flipper_node',
|
||||||
|
name='turtle_flipper'
|
||||||
|
)
|
||||||
|
])
|
||||||
32
initTurt_launch.py
Normal file
32
initTurt_launch.py
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
from launch import LaunchDescription
|
||||||
|
from launch_ros.actions import Node
|
||||||
|
from launch.actions import ExecuteProcess, TimerAction
|
||||||
|
|
||||||
|
def generate_launch_description():
|
||||||
|
launchDesc = LaunchDescription([
|
||||||
|
Node(
|
||||||
|
package='turtlesim',
|
||||||
|
executable='turtlesim_node',
|
||||||
|
name='sim'
|
||||||
|
),
|
||||||
|
Node(
|
||||||
|
package='adipu_turtlesim_controller',
|
||||||
|
executable='mouse_follow_node',
|
||||||
|
name='mouse'
|
||||||
|
)
|
||||||
|
])
|
||||||
|
|
||||||
|
launchDesc.add_action(
|
||||||
|
ExecuteProcess(
|
||||||
|
cmd=[
|
||||||
|
"ros2",
|
||||||
|
"service",
|
||||||
|
"call",
|
||||||
|
"/spawn",
|
||||||
|
"turtlesim/srv/Spawn",
|
||||||
|
"{x: 2.0, y: 2.0, theta: 0.0, name: 'turtle2'}"
|
||||||
|
],
|
||||||
|
output='screen'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
return launchDesc
|
||||||
Reference in New Issue
Block a user