Skip to content

Commit b368d3a

Browse files
committed
Linter
1 parent 1d32988 commit b368d3a

6 files changed

Lines changed: 34 additions & 12 deletions

File tree

CustomRobots/Turtlebot2/launch/turtlebot2.launch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def launch_setup(context):
110110

111111
nodes_to_start.append(gz_ros2_image_left_bridge)
112112
nodes_to_start.append(gz_ros2_image_right_bridge)
113-
elif sensor== "":
113+
elif sensor == "":
114114
gz_ros2_image_bridge = Node(
115115
package="ros_gz_image",
116116
executable="image_bridge",

CustomRobots/autonomous_car/launch/autonomous_car.launch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ def launch_setup(context):
2727
sensor = gz_sensor.perform(context)
2828
mode = gz_mode.perform(context)
2929

30-
bridge_yaml = os.path.join(package_dir, "params", f"autonomous_car_{mode}_{sensor}.yaml")
30+
bridge_yaml = os.path.join(
31+
package_dir, "params", f"autonomous_car_{mode}_{sensor}.yaml"
32+
)
3133

3234
# =========================
3335
# ROBOT DESCRIPTION (URDF)

CustomRobots/logistic_ackermann_robot/launch/logistic_ackermann_robot.launch.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,15 @@ def launch_setup(context):
3939
# ).toxml()
4040

4141
## Temporary SDF load
42-
sdf_file = os.path.join(package_dir, 'models', 'logistic_ackermann_robot', 'logistic_ackermann_robot.sdf')
43-
with open(sdf_file, 'r') as infp:
42+
sdf_file = os.path.join(
43+
package_dir,
44+
"models",
45+
"logistic_ackermann_robot",
46+
"logistic_ackermann_robot.sdf",
47+
)
48+
with open(sdf_file, "r") as infp:
4449
robot_description_content = infp.read()
4550

46-
4751
robot_description = {"robot_description": robot_description_content}
4852

4953
robot_state_publisher_node = Node(

CustomRobots/logistic_holonomic_robot/launch/logistic_holonomic_robot.launch.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,13 @@ def launch_setup(context):
3939
# ).toxml()
4040

4141
## Temporary SDF load
42-
sdf_file = os.path.join(package_dir, 'models', 'logistic_holonomic_robot', 'logistic_holonomic_robot.sdf')
43-
with open(sdf_file, 'r') as infp:
42+
sdf_file = os.path.join(
43+
package_dir,
44+
"models",
45+
"logistic_holonomic_robot",
46+
"logistic_holonomic_robot.sdf",
47+
)
48+
with open(sdf_file, "r") as infp:
4449
robot_description_content = infp.read()
4550

4651
robot_description = {"robot_description": robot_description_content}

CustomRobots/quadrotor/launch/quadrotor.launch.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@
44
from ament_index_python.packages import get_package_share_directory
55
from launch import LaunchDescription
66
from launch.substitutions import LaunchConfiguration, Command, IfElseSubstitution
7-
from launch.actions import DeclareLaunchArgument, OpaqueFunction, IncludeLaunchDescription
7+
from launch.actions import (
8+
DeclareLaunchArgument,
9+
OpaqueFunction,
10+
IncludeLaunchDescription,
11+
)
812
from launch_ros.actions import Node
913
from launch_ros.parameter_descriptions import ParameterValue
1014
from launch.launch_description_sources import PythonLaunchDescriptionSource
1115

16+
1217
def launch_setup(context):
1318
use_sim_time = LaunchConfiguration("use_sim_time")
1419
x = LaunchConfiguration("x")
@@ -101,7 +106,7 @@ def launch_setup(context):
101106
{
102107
"name_space": gz_namespace,
103108
"pose_frame_id": "earth",
104-
"twist_frame_id": [gz_namespace,"/base_link"],
109+
"twist_frame_id": [gz_namespace, "/base_link"],
105110
},
106111
],
107112
)
@@ -160,7 +165,11 @@ def generate_launch_description():
160165
declared_arguments.append(DeclareLaunchArgument("P", default_value="0"))
161166
declared_arguments.append(DeclareLaunchArgument("Y", default_value="0"))
162167
declared_arguments.append(DeclareLaunchArgument("sensor", default_value="camera"))
163-
declared_arguments.append(DeclareLaunchArgument("namespace", description="Namespace to use", default_value="drone0"))
168+
declared_arguments.append(
169+
DeclareLaunchArgument(
170+
"namespace", description="Namespace to use", default_value="drone0"
171+
)
172+
)
164173

165174
return LaunchDescription(
166175
declared_arguments + [OpaqueFunction(function=launch_setup)]

CustomRobots/vacuum_cleaner/launch/vacuum_cleaner.launch.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ def launch_setup(context):
4747
).toxml()
4848
else:
4949
## Temporary SDF load to fix bumpers
50-
sdf_file = os.path.join(package_dir, 'models', 'vacuum_cleaner', 'vacuum_cleaner.sdf')
51-
with open(sdf_file, 'r') as infp:
50+
sdf_file = os.path.join(
51+
package_dir, "models", "vacuum_cleaner", "vacuum_cleaner.sdf"
52+
)
53+
with open(sdf_file, "r") as infp:
5254
robot_description_content = infp.read()
5355

5456
robot_description = {"robot_description": robot_description_content}

0 commit comments

Comments
 (0)