@1487542142 问题以解决,是缺少安装补件,sudo apt install ros-humble-xacro
[INFO] [launch]: All log files can be found below /home/user/.ros/log/2024-11-20-23-24-23-788430-user-Dell-G15-5510-38654
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [launch.user]: Setting logging gazebo verbosity to error
[INFO] [robot_state_publisher-1]: process started with pid [38668]
[INFO] [gzserver-2]: process started with pid [38670]
[INFO] [gzclient-3]: process started with pid [38672]
[INFO] [spawn_entity.py-4]: process started with pid [38674]
[robot_state_publisher-1] [INFO] [1732116264.465605083] [robot_state_publisher]: got segment base_link
[robot_state_publisher-1] [INFO] [1732116264.465738227] [robot_state_publisher]: got segment left_foot
[robot_state_publisher-1] [INFO] [1732116264.465745475] [robot_state_publisher]: got segment left_hip_base
[robot_state_publisher-1] [INFO] [1732116264.465765370] [robot_state_publisher]: got segment left_shank
[robot_state_publisher-1] [INFO] [1732116264.465768695] [robot_state_publisher]: got segment left_thigh
[robot_state_publisher-1] [INFO] [1732116264.465771839] [robot_state_publisher]: got segment right_foot
[robot_state_publisher-1] [INFO] [1732116264.465775017] [robot_state_publisher]: got segment right_hip_base
[robot_state_publisher-1] [INFO] [1732116264.465778220] [robot_state_publisher]: got segment right_shank
[robot_state_publisher-1] [INFO] [1732116264.465781369] [robot_state_publisher]: got segment right_thigh
[robot_state_publisher-1] [INFO] [1732116264.465784476] [robot_state_publisher]: got segment world
[spawn_entity.py-4] [INFO] [1732116264.774096644] [spawn_entity]: Spawn Entity started
[spawn_entity.py-4] [INFO] [1732116264.774348788] [spawn_entity]: Loading entity published on topic robot_description
[spawn_entity.py-4] /opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/qos.py:307: UserWarning: DurabilityPolicy.RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL is deprecated. Use DurabilityPolicy.TRANSIENT_LOCAL instead.
[spawn_entity.py-4] warnings.warn(
[spawn_entity.py-4] [INFO] [1732116264.775528902] [spawn_entity]: Waiting for entity xml on robot_description
[spawn_entity.py-4] [INFO] [1732116264.788524210] [spawn_entity]: Waiting for service /spawn_entity, timeout = 30
[spawn_entity.py-4] [INFO] [1732116264.789360778] [spawn_entity]: Waiting for service /spawn_entity
[spawn_entity.py-4] [ERROR] [1732116294.843599865] [spawn_entity]: Service %s/spawn_entity unavailable. Was Gazebo started with GazeboRosFactory?
[spawn_entity.py-4] [ERROR] [1732116294.844905741] [spawn_entity]: Spawn service failed. Exiting.
[ERROR] [spawn_entity.py-4]: process has died [pid 38674, exit code 1, cmd '/opt/ros/humble/lib/gazebo_ros/spawn_entity.py -topic robot_description -entity my_bot --ros-args'].
Run CMD Task:[sudo apt search python3-rosdep ]
[/][0.62s] python3-rosdep-modules/focal,focal,now 0.25.1-1 all [installed,automa[-][0.62s] CMD Result:success
Run CMD Task:[sudo apt install python3-rosdep -y]
[-][0.52s] CMD Result:success
Run CMD Task:[ls /opt/ros/galactic/setup.bash]
[/][0.00s] ls: cannot access '/opt/ros/galactic/setup.bash': No such file or dir[-][0.00s] CMD Result:code:2
安装失败了,请打开鱼香社区:https://fishros.org.cn/forum 在一键安装专区反馈问题...
Run CMD Task:[ls /opt/ros/galactic/setup.bash]
[/][0.00s] ls: cannot access '/opt/ros/galactic/setup.bash': No such file or dir[-][0.00s] CMD Result:code:2
欢迎加入机器人学习交流QQ群:438144612(入群口令:一键安装)
鱼香小铺正式开业,最低499可入手一台能建图会导航的移动机器人,淘宝搜店:鱼香ROS 或打开链接查看:https://item.taobao.com/item.htm?id=696573635888
如在使用过程中遇到问题,请打开:https://fishros.org.cn/forum 进行反馈
检测到本次运行出现失败命令,直接退出按Ctrl+C,按任意键上传日志并退出
这种情况怎么解决,之前安装成功过,但是在装就失败了
问题描述:
在本小节的最后一步去启动rvzi时,终端报错:[ERROR] [robot_state_publisher-1]: process has died [pid 12124, exit code -6, cmd '/opt/ros/humble/lib/robot_state_publisher/robot_state_publisher --ros-args --params-file /tmp/launch_params_06nznk6j'].
具体细节和上下文:1.base.urdf.xacro
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:macro name="base_xacro" params="length radius">
<!-- 机器人的身体部分 -->
<link name="base_link">
<!--部件的外观描述-->
<visual>
<!--沿着自己几何中心的偏移和旋转量-->
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0"/>
<!--几何形状-->
<geometry>
<cylinder radius="${radius}" length="${length}"/>
</geometry>
<!--材质颜色-->
<material name="white">
<color rgba="1.0 1.0 1.0 0.5"/>
</material>
</visual>
</link>
</xacro:macro>
</robot>
2.laser.urdf.xacro:
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:macro name="laser_xacro" params="xyz">
<!--雷达支撑杆-->
<link name="laser_cylinder_link">
<!--部件的外观描述-->
<visual>
<!--沿着自己几何中心的偏移和旋转量-->
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0"/>
<!--几何形状-->
<geometry>
<cylinder radius="0.01" length="0.10"/>
</geometry>
<!--材质颜色-->
<material name="black">
<color rgba="0.0 0.0 0.0 1.0"/>
</material>
</visual>
</link>
</xacro:macro>
</robot>
3.imu.urdf.xacro:
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:macro name="imu_xacro" params="xyz">
<!--机器人的IMU部件,惯性测量传感器-->
<link name="imu__link">
<!--部件的外观描述-->
<visual>
<!--沿着自己几何中心的偏移和旋转量-->
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0"/>
<!--几何形状-->
<geometry>
<box size="0.02 0.02 0.02"/>
</geometry>
<!--材质颜色-->
<material name="black">
<color rgba="0.0 0.0 0.0 0.5"/>
</material>
</visual>
</link>
</xacro:macro>
</robot>
4.camera.urdf.xacro:
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:macro name="camera_xacro" params="xyz">
<!--机器人的IMU部件,惯性测量传感器-->
<link name="camera_link">
<!--部件的外观描述-->
<visual>
<!--沿着自己几何中心的偏移和旋转量-->
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0"/>
<!--几何形状-->
<geometry>
<box size="0.02 0.02 0.02"/>
</geometry>
<!--材质颜色-->
<material name="black">
<color rgba="0.0 0.0 0.0 0.5"/>
</material>
</visual>
</link>
</xacro:macro>
</robot>
5.fishbot.urdf.xacro:
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="firstbot">
<!-- 基础部分 base_link -->
<xacro:include filename="$(find fishbot_description)/urdf/fishbot/base.urdf.xacro"/>
<!-- 传感器部分 -->
<xacro:include filename="$(find fishbot_description)/urdf/fishbot/sensor/imu.urdf.xacro"/>
<xacro:include filename="$(find fishbot_description)/urdf/fishbot/sensor/camera.urdf.xacro"/>
<xacro:include filename="$(find fishbot_description)/urdf/fishbot/sensor/laser.urdf.xacro"/>
<xacro:base_xacro length="0.12" radius="0.10" />
<xacro:imu_xacro xyz="0.0 0.0 0.02" />
<xacro:camera_xacro xyz="0.10 0.0 0.075" />
<xacro:laser_xacro xyz="0.0 0.0 0.10" />
</robot>
c0a8513c-9eb9-481c-9045-70187d341fbc-image.png 一开始是这样的,然后运行setupbashc9a8a315-7d4c-4189-8a28-e69eb4998c18-image.png 就会导致过长,bashrc也是过长,但两个path并未改变。我的bashrc目前的状况是这样的147f58dd-40a1-4f30-89e3-22321e4107ad-image.png 请问这种情况该如何解决
在本小节的最后一步去启动rvzi时,终端报错:
wlz@ros2:~/chapt6/chapt6_ws$ ros2 launch fishibot_description display_robot.launch.py model:=/home/wlz/chapt6/chapt6_ws/install/fishbot_description/share/fishbot_description/urdf/fishbot/fishbot.urdf.xacro
Package 'fishibot_description' not found: "package 'fishibot_description' not found, searching: ['/home/wlz/chapt6/chapt6_ws/install/fishbot_description', '/opt/ros/humble']"
1.base.urdf.xacro
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:macro name="base_xacro" params="length radius">
<!-- 机器人的身体部分 -->
<link name="base_link">
<!--部件的外观描述-->
<visual>
<!--沿着自己几何中心的偏移和旋转量-->
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0"/>
<!--几何形状-->
<geometry>
<cylinder radius="${radius}" length="${length}"/>
</geometry>
<!--材质颜色-->
<material name="white">
<color rgba="1.0 1.0 1.0 0.5"/>
</material>
</visual>
</link>
</xacro:macro>
</robot>
2.laser.urdf.xacro:
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:macro name="laser_xacro" params="xyz">
<!--雷达支撑杆-->
<link name="laser_cylinder_link">
<!--部件的外观描述-->
<visual>
<!--沿着自己几何中心的偏移和旋转量-->
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0"/>
<!--几何形状-->
<geometry>
<cylinder radius="0.01" length="0.10"/>
</geometry>
<!--材质颜色-->
<material name="black">
<color rgba="0.0 0.0 0.0 1.0"/>
</material>
</visual>
</link>
</robot>
3.imu.urdf.xacro:
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:macro name="imu_xacro" params="xyz">
<!--机器人的IMU部件,惯性测量传感器-->
<link name="imu__link">
<!--部件的外观描述-->
<visual>
<!--沿着自己几何中心的偏移和旋转量-->
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0"/>
<!--几何形状-->
<geometry>
<box size="0.02 0.02 0.02"/>
</geometry>
<!--材质颜色-->
<material name="black">
<color rgba="0.0 0.0 0.0 0.5"/>
</material>
</visual>
</link>
</robot>
4.camera.urdf.xacro:
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:macro name="camera_xacro" params="xyz">
<!--机器人的IMU部件,惯性测量传感器-->
<link name="camera_link">
<!--部件的外观描述-->
<visual>
<!--沿着自己几何中心的偏移和旋转量-->
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0"/>
<!--几何形状-->
<geometry>
<box size="0.02 0.02 0.02"/>
</geometry>
<!--材质颜色-->
<material name="black">
<color rgba="0.0 0.0 0.0 0.5"/>
</material>
</visual>
</link>
</robot>
5.fishbot.urdf.xacro:
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="firstbot">
<!-- 基础部分 base_link -->
<xacro:include filename="$(find fishbot_description)/urdf/fishbot/base.urdf.xacro"/>
<!-- 传感器部分 -->
<xacro:include filename="$(find fishbot_description)/urdf/fishbot/sensor/imu.urdf.xacro"/>
<xacro:include filename="$(find fishbot_description)/urdf/fishbot/sensor/camera.urdf.xacro"/>
<xacro:include filename="$(find fishbot_description)/urdf/fishbot/sensor/laser.urdf.xacro"/>
<xacro:base_xacro length="0.12" radius="0.10" />
<xacro:imu_xacro xyz="0.0 0.0 0.02" />
<xacro:camera_xacro xyz="0.10 0.0 0.075" />
<xacro:laser_xacro xyz="0.0 0.0 0.10" />
</robot>
尝试过的解决方法:wlz@ros2:~/chapt6/chapt6_ws$ ros2 pkg list | grep fishbot_description
fishbot_description
wlz@ros2:~/chapt6/chapt6_ws$ ros2 launch fishibot_description display_robot.launch.py model:=/home/wlz/chapt6/chapt6_ws/install/fishbot_description/share/fishbot_description/urdf/fishbot/fishbot.urdf.xacro
Package 'fishibot_description' not found: "package 'fishibot_description' not found, searching: ['/home/wlz/chapt6/chapt6_ws/install/fishbot_description', '/opt/ros/humble']"
列出了以下功能包,显示存在
重新source了一下,仍然不行
cjyiok@cjyiok-VirtualBox:~$ cd ws01_plumbing/
cjyiok@cjyiok-VirtualBox:~/ws01_plumbing$ . install/setup.bash
not found: "/home/cjyiok/ws01_plumbing/install/cpp03_action/share/cpp03_action/local_setup.bash"
cjyiok@cjyiok-VirtualBox:~/ws01_plumbing$ code .
cjyiok@cjyiok-VirtualBox:~/ws01_plumbing$ colcon build --clean
usage: colcon [-h] [--log-base LOG_BASE] [--log-level LOG_LEVEL]
{build,extension-points,extensions,graph,info,list,metadata,test,test-result,version-check}
...
colcon: error: unrecognized arguments: --clean
6e5f788d-0a75-46be-a9e5-c72ef8c3ffdc-image.png
设置完主从机的bashrc和hosts之后,在终端用ping+ip指令可以看到连接有正常延迟,但从机rostopic list显示unable to cmmunicate with master。从机roscore 显示not set to the machine
在导航过程中总是频繁改变线路, 并且总在行走过程中出现掉头,转到150度后左右摆头
[component_container_isolated-1] [INFO] [1732006754.263911500] [bt_navigator]: Begin navigating from current location (0.00, 0.00) to (2.00, 0.00) [component_container_isolated-1] [INFO] [1732006754.275660558] [controller_server]: Received a goal, begin computing control effort. [component_container_isolated-1] [WARN] [1732006754.276030386] [controller_server]: No goal checker was specified in parameter 'current_goal_checker'. Server will use only plugin loaded general_goal_checker . This warning will appear once. [component_container_isolated-1] [WARN] [1732006754.850013391] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [INFO] [1732006755.326992516] [controller_server]: Passing new path to controller. [component_container_isolated-1] [WARN] [1732006755.841510701] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [INFO] [1732006756.377035908] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006757.377040442] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006758.427313372] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006759.427035494] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006760.477049427] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006761.477067378] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006762.527046312] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006763.577045079] [controller_server]: Passing new path to controller. [component_container_isolated-1] [ERROR] [1732006764.277589667] [controller_server]: Failed to make progress [component_container_isolated-1] [WARN] [1732006764.279071315] [controller_server]: [follow_path] [ActionServer] Aborting handle. [component_container_isolated-1] [INFO] [1732006764.291378032] [controller_server]: Received a goal, begin computing control effort. [component_container_isolated-1] [WARN] [1732006764.356116409] [controller_server]: Control loop missed its desired rate of 20.0000Hz [component_container_isolated-1] [INFO] [1732006764.592088337] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006765.591994581] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006766.642014056] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006767.692006407] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006768.692015608] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006769.742319163] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006770.742018909] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006771.792107217] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006772.842003902] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006773.841999687] [controller_server]: Passing new path to controller. [component_container_isolated-1] [ERROR] [1732006774.392724032] [controller_server]: Failed to make progress [component_container_isolated-1] [WARN] [1732006774.392933445] [controller_server]: [follow_path] [ActionServer] Aborting handle. [component_container_isolated-1] [WARN] [1732006774.421698701] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [WARN] [1732006774.431964944] [bt_navigator_navigate_to_pose_rclcpp_node]: Node timed out while executing service call to global_costmap/clear_entirely_global_costmap. [component_container_isolated-1] [INFO] [1732006774.432893016] [behavior_server]: Running spin [component_container_isolated-1] [WARN] [1732006774.433124304] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [INFO] [1732006774.437556123] [behavior_server]: Turning 1.57 for spin behavior. [component_container_isolated-1] [INFO] [1732006783.538085015] [behavior_server]: spin completed successfully [component_container_isolated-1] [INFO] [1732006783.580659052] [controller_server]: Received a goal, begin computing control effort. [component_container_isolated-1] [INFO] [1732006784.633075413] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006785.682274732] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006786.682305516] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006787.731927163] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006788.731920614] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006789.782143087] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006790.831925732] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006791.831933183] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006792.882041907] [controller_server]: Passing new path to controller. [component_container_isolated-1] [ERROR] [1732006793.582154250] [controller_server]: Failed to make progress [component_container_isolated-1] [WARN] [1732006793.582361039] [controller_server]: [follow_path] [ActionServer] Aborting handle. [component_container_isolated-1] [INFO] [1732006793.600466307] [local_costmap.local_costmap]: Received request to clear entirely the local_costmap [component_container_isolated-1] [INFO] [1732006793.601456211] [controller_server]: Received a goal, begin computing control effort. [component_container_isolated-1] [WARN] [1732006793.758523402] [controller_server]: Control loop missed its desired rate of 20.0000Hz [component_container_isolated-1] [INFO] [1732006793.890609956] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006794.958623284] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006795.958619943] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006797.008877832] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006798.008727201] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006799.058682219] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006800.108712194] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006801.109257180] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006802.158617289] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006803.158595865] [controller_server]: Passing new path to controller. [component_container_isolated-1] [ERROR] [1732006803.758664618] [controller_server]: Failed to make progress [component_container_isolated-1] [WARN] [1732006803.758803449] [controller_server]: [follow_path] [ActionServer] Aborting handle. [component_container_isolated-1] [INFO] [1732006803.770734505] [behavior_server]: Running wait [component_container_isolated-1] [INFO] [1732006808.770987589] [behavior_server]: wait completed successfully [component_container_isolated-1] [INFO] [1732006808.820830741] [controller_server]: Received a goal, begin computing control effort. [component_container_isolated-1] [INFO] [1732006809.871387168] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006810.921427351] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006811.921385511] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006812.971387861] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006813.971465311] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006815.021387955] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006816.071399805] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006817.071362631] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006818.121477772] [controller_server]: Passing new path to controller. [component_container_isolated-1] [ERROR] [1732006818.823248803] [controller_server]: Failed to make progress [component_container_isolated-1] [WARN] [1732006818.823473383] [controller_server]: [follow_path] [ActionServer] Aborting handle. [component_container_isolated-1] [INFO] [1732006818.840331500] [local_costmap.local_costmap]: Received request to clear entirely the local_costmap [component_container_isolated-1] [INFO] [1732006818.840919201] [controller_server]: Received a goal, begin computing control effort. [component_container_isolated-1] [WARN] [1732006818.956024264] [controller_server]: Control loop missed its desired rate of 20.0000Hz [component_container_isolated-1] [INFO] [1732006819.148786039] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006820.156127354] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006821.206119121] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006822.206117239] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006823.256122423] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006824.256124624] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006825.306125433] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006826.356124492] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006827.356115026] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006828.406133918] [controller_server]: Passing new path to controller. [component_container_isolated-1] [ERROR] [1732006828.956353394] [controller_server]: Failed to make progress [component_container_isolated-1] [WARN] [1732006828.956596641] [controller_server]: [follow_path] [ActionServer] Aborting handle. [component_container_isolated-1] [INFO] [1732006828.970871791] [behavior_server]: Running backup [component_container_isolated-1] [WARN] [1732006838.971263337] [behavior_server]: Exceeded time allowance before reaching the DriveOnHeading goal - Exiting DriveOnHeading [component_container_isolated-1] [WARN] [1732006838.971335670] [behavior_server]: backup failed [component_container_isolated-1] [WARN] [1732006838.971359294] [behavior_server]: [backup] [ActionServer] Aborting handle. [component_container_isolated-1] [WARN] [1732006839.002809307] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [WARN] [1732006839.011087868] [bt_navigator_navigate_to_pose_rclcpp_node]: Node timed out while executing service call to global_costmap/clear_entirely_global_costmap. [component_container_isolated-1] [WARN] [1732006839.014434991] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [INFO] [1732006839.014628072] [behavior_server]: Running spin [component_container_isolated-1] [INFO] [1732006839.015027359] [behavior_server]: Turning 1.57 for spin behavior. [component_container_isolated-1] [WARN] [1732006839.560671519] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [WARN] [1732006839.590014559] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [WARN] [1732006839.690031316] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [WARN] [1732006840.149728830] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [WARN] [1732006840.331374747] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [WARN] [1732006843.659815383] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [INFO] [1732006847.415448866] [behavior_server]: spin completed successfully [component_container_isolated-1] [INFO] [1732006847.460475496] [controller_server]: Received a goal, begin computing control effort. [component_container_isolated-1] [INFO] [1732006848.510794801] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006849.560794152] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006850.560793436] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006851.560836761] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006852.610795279] [controller_server]: Passing new path to controller. [component_container_isolated-1] [WARN] [1732006853.529834769] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [INFO] [1732006853.610796313] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006854.660792747] [controller_server]: Passing new path to controller. [component_container_isolated-1] [WARN] [1732006855.295701803] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [INFO] [1732006855.660791448] [controller_server]: Passing new path to controller. [component_container_isolated-1] [WARN] [1732006855.700843475] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [INFO] [1732006856.710903672] [controller_server]: Passing new path to controller. [component_container_isolated-1] [ERROR] [1732006857.460895625] [controller_server]: Failed to make progress [component_container_isolated-1] [WARN] [1732006857.462019694] [controller_server]: [follow_path] [ActionServer] Aborting handle. [component_container_isolated-1] [INFO] [1732006857.482102728] [controller_server]: Received a goal, begin computing control effort. [component_container_isolated-1] [WARN] [1732006857.550348060] [controller_server]: Control loop missed its desired rate of 20.0000Hz [component_container_isolated-1] [INFO] [1732006857.732944798] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006858.783039814] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006859.782944892] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006860.833005491] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006861.832950526] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006862.832942227] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006863.882942745] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006864.882942904] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006865.941362563] [controller_server]: Passing new path to controller. [component_container_isolated-1] [WARN] [1732006865.995249913] [controller_server]: Control loop missed its desired rate of 20.0000Hz [component_container_isolated-1] [INFO] [1732006866.982953563] [controller_server]: Passing new path to controller. [component_container_isolated-1] [ERROR] [1732006867.583379312] [controller_server]: Failed to make progress [component_container_isolated-1] [WARN] [1732006867.583508227] [controller_server]: [follow_path] [ActionServer] Aborting handle. [component_container_isolated-1] [INFO] [1732006867.601409622] [behavior_server]: Running wait [component_container_isolated-1] [INFO] [1732006872.601693664] [behavior_server]: wait completed successfully [component_container_isolated-1] [INFO] [1732006872.651542358] [controller_server]: Received a goal, begin computing control effort. [component_container_isolated-1] [INFO] [1732006873.702117451] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006874.702114860] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006875.752175460] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006876.802082937] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006877.802069096] [controller_server]: Passing new path to controller. [component_container_isolated-1] [WARN] [1732006878.315566169] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [WARN] [1732006878.323257904] [controller_server]: Control loop missed its desired rate of 20.0000Hz [component_container_isolated-1] [WARN] [1732006878.415097891] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [WARN] [1732006878.537929105] [controller_server]: Control loop missed its desired rate of 20.0000Hz [component_container_isolated-1] [WARN] [1732006878.578234005] [controller_server]: Control loop missed its desired rate of 20.0000Hz [component_container_isolated-1] [WARN] [1732006878.781040359] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [INFO] [1732006878.852100530] [controller_server]: Passing new path to controller. [component_container_isolated-1] [WARN] [1732006878.958007420] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [WARN] [1732006878.992629558] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [WARN] [1732006878.997865491] [controller_server]: Control loop missed its desired rate of 20.0000Hz [component_container_isolated-1] [WARN] [1732006879.042754165] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [WARN] [1732006879.199907105] [controller_server]: Control loop missed its desired rate of 20.0000Hz [component_container_isolated-1] [WARN] [1732006879.214315545] [controller_server]: Control loop missed its desired rate of 20.0000Hz [component_container_isolated-1] [WARN] [1732006879.406779240] [controller_server]: Control loop missed its desired rate of 20.0000Hz [component_container_isolated-1] [INFO] [1732006879.909552451] [controller_server]: Passing new path to controller. [component_container_isolated-1] [WARN] [1732006880.576583219] [BehaviorTreeEngine]: Behavior Tree tick rate 100.00 was exceeded! [component_container_isolated-1] [INFO] [1732006880.902074956] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006881.952082474] [controller_server]: Passing new path to controller. [component_container_isolated-1] [ERROR] [1732006882.652133568] [controller_server]: Failed to make progress [component_container_isolated-1] [WARN] [1732006882.653493592] [controller_server]: [follow_path] [ActionServer] Aborting handle. [component_container_isolated-1] [INFO] [1732006882.668273610] [controller_server]: Received a goal, begin computing control effort. [component_container_isolated-1] [WARN] [1732006882.760195263] [controller_server]: Control loop missed its desired rate of 20.0000Hz [component_container_isolated-1] [WARN] [1732006882.772280608] [controller_server]: Control loop missed its desired rate of 20.0000Hz [component_container_isolated-1] [INFO] [1732006882.969265954] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006884.019259180] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006885.019267797] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006886.069265689] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006887.069276348] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006888.119343948] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006889.119289566] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006890.169310208] [controller_server]: Passing new path to controller. [component_container_isolated-1] [INFO] [1732006891.219296142] [controller_server]: Passing new path to controller.尝试修改控制执行器频率以及行为树频率后仍然出现这种问题,
nav的配置文件:
使用sw_urdf_exporter插件将solidworks中的模型导出为ros1的功能包。只保留了urdf文件和meshes文件夹中的 .STL文件。按照视频教程启动了rviz并显示了机器人。但在后续的启动gazebo并显示机器人模型中,一直无法加载机器人模型。500f7fc6-01f9-483d-a8c0-01446c154aa2-image.png 91e3be93-5324-44e6-9146-e3c73cb82ff2-image.png ffd38cd6-f291-454e-ab49-f0d2e91407ff-image.png
系统为ubuntu20 ,ros2 foxy 版本,我有一个sh脚本文件,位于创建好的Python文件夹,想要在编译时自动执行该脚本,应该在setup.py中如何设置
a8723cbe-7dff-4823-96ab-e78f55caa415-image.png
1cf5a371-6e75-4ff9-bcbb-06e02b47b759-image.png
ab4dbdb4-bdc0-402a-af6c-62bc643d677f-image.png
调用create_subscription,
从
node_impl.hpp Node::create_subscription
调用到
create_subscription.hpp rclcpp::create_subscription
ad978c59-a517-4c60-a279-5389807d0c04-image.png
6cbd3d01-0ec9-4eb1-bb71-b596b5766c65-111.jpg
80729543-672b-4178-810f-0d6a052be9b8-222.jpg
86c81103-244f-48b3-9116-7f36d72a83cf-333.jpg
using SequenceOfWeakSubscriptions = std::vector<WeakSubscriptionEntry>;
SequenceOfWeakSubscriptions subscriptions_;
fd0c8fe0-4570-4b41-8215-85dafb102796-555.jpg
using SequenceOfWeakWaitables = std::vector<WeakWaitableEntry>;
SequenceOfWeakWaitables waitables_;
Run CMD Task:[sudo apt install python-rosdep -y]
[/][0.38s] 升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软[-][0.43s] CMD Result:success
Run CMD Task:[ls /opt/ros/melodic/setup.bash]
[-][0.00s] CMD Result:code:2
安装失败了,请打开鱼香社区:https://fishros.org.cn/forum 在一键安装专区反馈问题...
Run CMD Task:[ls /opt/ros/melodic/setup.bash]
[-][0.00s] CMD Result:code:2
欢迎加入机器人学习交流QQ群:438144612(入群口令:一键安装)
鱼香小铺正式开业,最低499可入手一台能建图会导航的移动机器人,淘宝搜店:鱼香ROS 或打开链接查看:https://item.taobao.com/item.htm?id=696573635888
如在使用过程中遇到问题,请打开:https://fishros.org.cn/forum 进行反馈
检测到本次运行出现失败命令,直接退出按Ctrl+C,按任意键上传日志并退出
^Cbash: /opt/ros/melodic/setup.bash: 没有那个文件或目录
bash: /opt/ros/melodic/setup.bash: 没有那个文件或目录
GAZEBO_PLUGIN_PATH :/home/hy/PX4_Firmware/build/px4_sitl_default/build_gazebo:/home/hy/PX4_Firmware/build/px4_sitl_default/build_gazebo:/home/hy/PX4_Firmware/build/px4_sitl_default/build_gazebo:/home/hy/PX4_Firmware/build/px4_sitl_default/build_gazebo
GAZEBO_MODEL_PATH :/home/hy/PX4_Firmware//Tools/sitl_gazebo/models:/home/hy/PX4_Firmware//Tools/sitl_gazebo/models:/home/hy/PX4_Firmware//Tools/sitl_gazebo/models:/home/hy/PX4_Firmware//Tools/sitl_gazebo/models
LD_LIBRARY_PATH /home/hy/catkin_ws/devel/lib:/home/hy/PX4_Firmware/build/px4_sitl_default/build_gazebo:/home/hy/PX4_Firmware/build/px4_sitl_default/build_gazebo:/home/hy/PX4_Firmware/build/px4_sitl_default/build_gazebo:/home/hy/PX4_Firmware/build/px4_sitl_default/build_gazebo
跟书上2.3节在功能包中编写C++节点一起做的,前面都还好,到最后一步出问题:
屏幕截图 2024-11-18 194438.png
代码:
屏幕截图 2024-11-18 194650.png
cmakelist:
屏幕截图 2024-11-18 194756.png
该怎么解决?
6.2.2章节,想要实现在rviz中显示机器人
问题描述:在根据b站课程输入所有代码后,在终端进行了'ros2 launch display_robot.launch.py'操作,但是并未打开rviz,而是报错显示了
'wlz@ros2:~/chapt6/chapt6_ws/src/fishbot_description/launch$ ros2 launch display_robot.launch.py
[INFO] [launch]: All log files can be found below /home/wlz/.ros/log/2024-11-18-16-10-28-088426-ros2-7528
[INFO] [launch]: Default logging verbosity is set to INFO
[ERROR] [launch]: Caught exception in launch (see debug for traceback): "package 'robot_joint_publisher' not found, searching: ['/home/wlz/chapt6/chapt6_ws/install/fishbot_description', '/opt/ros/humble']"'
import launch
import launch_ros
from ament_index_python.packages import get_package_share_directory #用于找包的文件目录,以便于导入urdf的....
import os
import launch_ros.parameter_descriptions
def generate_launch_description():
#获取默认的urdf路径
urdf_package_path = get_package_share_directory('fishbot_description')
default_urdf_path = os.path.join(urdf_package_path,'urdf','first_robot.urdf')
# 声明一个urdf目录的参数,方面修改
action_declare_arg_mode_path = launch.actions.DeclareLaunchArgument(
name='model',default_value=str(default_urdf_path),description='加载的模型文件路径'
)
# 通过文件路径,获取内容,并转换成参数值对象,以供传入 robot_state_publisher
substitutions_command_result = launch.substitutions.Command(['cat ',launch.substitutions.LaunchConfiguration('model')])
robot_description_value = launch_ros.parameter_descriptions.ParameterValue(substitutions_command_result,value_type=str)
cmake_minimum_required(VERSION 3.8)
project(fishbot_description)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
find_package(ament_cmake REQUIRED)
uncomment the following section in order to fill in further dependencies manually. find_package(<dependency> REQUIRED)if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
set(ament_cmake_copyright_FOUND TRUE)
the following line skips cpplint (only works in a git repo) comment the line when this package is in a git repo and when a copyright and license is added to all source filesset(ament_cmake_cpplint_FOUND TRUE)
ament_lint_auto_find_test_dependencies()
endif()
install(DIRECTORY launch urdf
DESTINATION share/${PROJECT_NAME}
)
ament_package()
package:<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>fishbot_description</name>
<version>0.0.0</version>
<description>TODO: Package description</description>
<maintainer email="wlz@todo.todo">wlz</maintainer>
<license>Apache-2.0</license>
<buildtool_depend>ament_cmake</buildtool_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<depend>robot-state-publisher</depend>
<depend>joint-state-publisher</depend>
<export>
<build_type>ament_cmake</build_type>
</export>
</package>
之前以为是安装完joint-state-publisher和robot-state-publisher之后没有在package文件中声明依赖的原因,声明:' <depend>robot-state-publisher</depend>
<depend>joint-state-publisher</depend>之后仍然不行'
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
版块
-
1.3k
主题5.9k
帖子 -
774
主题3.2k
帖子 -
855
主题3.1k
帖子 -
147
主题652
帖子 -
1
主题2
帖子 -
145
主题687
帖子 -
20
主题58
帖子