init: ROS2 learning suite
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
"""
|
||||
action_launch.py —— 启动 Fibonacci Action 服务端。
|
||||
|
||||
client 不在此 launch,按需手动调用:
|
||||
ros2 action send_goal /fibonacci example_interfaces/action/Fibonacci "{order: 8}" --feedback
|
||||
"""
|
||||
|
||||
from launch import LaunchDescription
|
||||
from launch_ros.actions import Node
|
||||
|
||||
|
||||
def generate_launch_description():
|
||||
return LaunchDescription([
|
||||
Node(
|
||||
package='py_action_demo',
|
||||
executable='fibonacci_server',
|
||||
name='fibonacci_action_server_py',
|
||||
output='screen',
|
||||
),
|
||||
])
|
||||
Reference in New Issue
Block a user