otherFiles

This commit is contained in:
Aditya Pulipaka
2025-04-11 13:24:28 -05:00
parent 18bbd84e01
commit 9267c0d194
3 changed files with 50 additions and 0 deletions

2
.bashrc Normal file
View File

@@ -0,0 +1,2 @@
source ~/ros2_humble/install/local_setup.bash
source ~/adipu_ws/install/setup.bash

16
chaseTurt_launch.py Normal file
View 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
View 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