Skip to content

Commit

Permalink
fix setting
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBearing committed Oct 23, 2024
1 parent 461d0e3 commit c52f98e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
],
"ros.distro": "jazzy",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
}
"editor.defaultFormatter": "ms-python.black-formatter",
},
"black-formatter.args": [
"\"skip-string-normalization\""
]
}
16 changes: 12 additions & 4 deletions sanehal_bringup/launch/diffbot_on_pi.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ def generate_launch_description():
PathJoinSubstitution([FindExecutable(name='xacro')]),
' ',
PathJoinSubstitution(
[FindPackageShare('sanehal_vehicle_description'), 'urdf', 'diffbot.urdf.xacro']
[
FindPackageShare('sanehal_vehicle_description'),
'urdf',
'diffbot.urdf.xacro'
]
),
]
)
Expand Down Expand Up @@ -64,7 +68,11 @@ def generate_launch_description():
joint_state_broadcaster_spawner = Node(
package='controller_manager',
executable='spawner',
arguments=['joint_state_broadcaster', '--controller-manager', '/controller_manager'],
arguments=[
'joint_state_broadcaster',
'--controller-manager',
'/controller_manager'
],
)

robot_controller_spawner = Node(
Expand All @@ -74,7 +82,7 @@ def generate_launch_description():
)

# Delay start of robot_controller after `joint_state_broadcaster`
delay_robot_controller_spawner_after_joint_state_broadcaster_spawner = RegisterEventHandler(
delay_robot_controller_spawner = RegisterEventHandler(
event_handler=OnProcessExit(
target_action=joint_state_broadcaster_spawner,
on_exit=[robot_controller_spawner],
Expand All @@ -86,7 +94,7 @@ def generate_launch_description():
control_node,
robot_state_pub_node,
joint_state_broadcaster_spawner,
delay_robot_controller_spawner_after_joint_state_broadcaster_spawner,
delay_robot_controller_spawner,
]

return LaunchDescription(nodes)

0 comments on commit c52f98e

Please sign in to comment.