代码拉取完成,页面将自动刷新
同步操作将从 古月居_GuYueHome/originbot 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/python3
# Copyright (c) 2022, www.guyuehome.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import launch
import launch_ros.actions
from ament_index_python.packages import get_package_share_directory
def generate_launch_description():
ld = launch.LaunchDescription([
launch.actions.DeclareLaunchArgument(name='use_lidar', default_value='false'),
launch.actions.DeclareLaunchArgument(name='use_camera', default_value='false'),
launch.actions.DeclareLaunchArgument(name='use_imu', default_value='false'),
launch.actions.DeclareLaunchArgument(name='pub_odom', default_value='true'),
launch.actions.IncludeLaunchDescription(
launch.launch_description_sources.PythonLaunchDescriptionSource(
os.path.join(get_package_share_directory('originbot_base'),
'launch/robot.launch.py')),
launch_arguments={
'use_imu': launch.substitutions.LaunchConfiguration('use_imu'),
'pub_odom': launch.substitutions.LaunchConfiguration('pub_odom'),
}.items(),
),
launch.actions.IncludeLaunchDescription(
launch.launch_description_sources.PythonLaunchDescriptionSource(
os.path.join(get_package_share_directory('originbot_bringup'),
'launch','ydlidar.launch.py')),
condition=launch.conditions.IfCondition(
launch.substitutions.LaunchConfiguration('use_lidar'))),
launch.actions.IncludeLaunchDescription(
launch.launch_description_sources.PythonLaunchDescriptionSource(
os.path.join(get_package_share_directory('originbot_bringup'),
'launch','camera.launch.py')),
condition=launch.conditions.IfCondition(
launch.substitutions.LaunchConfiguration('use_camera')))
])
return ld
if __name__ == '__main__':
generate_launch_description()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。