Skip to content

Commit 141341d

Browse files
committed
docs: add docstrings and remove unused imports in follow person and 3d reconstruction launchers
1 parent 17a530d commit 141341d

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

Launchers/3d_reconstruction.launch.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
"""Launch file for 3D reconstruction simulation using Gazebo and custom robots."""
2+
13
import os
24
from launch import LaunchDescription
35
from launch.actions import DeclareLaunchArgument, IncludeLaunchDescription
4-
from launch.conditions import IfCondition, UnlessCondition
6+
from launch.conditions import IfCondition
57
from launch.launch_description_sources import PythonLaunchDescriptionSource
6-
from launch.substitutions import Command, LaunchConfiguration, PythonExpression
7-
from launch_ros.actions import Node
8+
from launch.substitutions import LaunchConfiguration
89
from launch_ros.substitutions import FindPackageShare
910

1011

1112
def generate_launch_description():
13+
"""Generate the launch description for the 3D reconstruction Gazebo simulation."""
1214

1315
# Set the path to the Gazebo ROS package
1416
pkg_gazebo_ros = FindPackageShare(package="gazebo_ros").find("gazebo_ros")

Launchers/follow_person_followingcam.launch.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1+
"""Launch file for following person with following camera in Gazebo simulation."""
2+
13
import os
24
from launch import LaunchDescription
35
from launch.actions import DeclareLaunchArgument, IncludeLaunchDescription
4-
from launch.conditions import IfCondition, UnlessCondition
6+
from launch.conditions import IfCondition
57
from launch.launch_description_sources import PythonLaunchDescriptionSource
6-
from launch.substitutions import Command, LaunchConfiguration, PythonExpression
7-
from launch_ros.actions import Node
8+
from launch.substitutions import LaunchConfiguration
89
from launch_ros.substitutions import FindPackageShare
910

1011

1112
def generate_launch_description():
13+
"""
14+
Generate the launch description for the following person exercise.
15+
16+
With a following camera in Gazebo simulation.
17+
"""
1218

1319
# Set the path to the Gazebo ROS package
1420
pkg_gazebo_ros = FindPackageShare(package="gazebo_ros").find("gazebo_ros")

0 commit comments

Comments
 (0)