Diogo Peralta Cordeiro
96afe5b656
Prompt: Make a program that makes the rosturtle in turtlesim run at velocity=v=0.5 m/s and turn with angular_velocity=ω=t/100 where t is time (in seconds); don't worry about the units too much.
18 lines
415 B
Python
18 lines
415 B
Python
from launch import LaunchDescription
|
|
from launch_ros.actions import Node
|
|
|
|
def generate_launch_description():
|
|
return LaunchDescription([
|
|
Node(
|
|
package='turtlesim',
|
|
executable='turtlesim_node'
|
|
),
|
|
Node(
|
|
package='ros2_turtlesim_shapes',
|
|
executable='talker',
|
|
name='cmd_vel_publisher',
|
|
output='screen'
|
|
),
|
|
|
|
])
|