"""Launch smooth velocity controller."""
from launch import LaunchDescription
from launch_ros.actions import Node
from ament_index_python.packages import get_package_share_directory
import os
def generate_launch_description():
    package_dir = get_package_share_directory("saltybot_smooth_velocity")
    config_path = os.path.join(package_dir, "config", "smooth_velocity_config.yaml")
    node = Node(
        package="saltybot_smooth_velocity",
        executable="smooth_velocity_node",
        name="smooth_velocity_node",
        output="screen",
        parameters=[config_path],
    )
    return LaunchDescription([node])
