-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译时遇到问题 #3
Comments
我遇到的问题:
|
我以前是好的。现在重装了一遍还不行。什么原因? |
问题是以前我这样运行错过一次但是后来又自动好了。结果现在又不行了 |
ubuntu22@ubuntu22-virtual-machine: 我有时候能编译,但是出现了这种情况,怎么办? |
出现这种情况而且gazebo一直出不来怎么办? |
试试关闭虚拟机的3d加速功能?
… 在 2024年7月25日,12:02,wariot221zjsru ***@***.***> 写道:
@zhangwanjie
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
|
却为何3D加速选项根本取消不掉? |
ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。
… 在 2024年7月25日,20:56,wariot221zjsru ***@***.***> 写道:
却为何3D加速选项根本取消不掉?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
这个是ros2的包啊。而且我以前一直都是好的。可能是因为我根据别的教程可能更新了gazebo系统。这个和ros1有什么关系?我在b站发过,我以前是好的 |
这个跟ROS1还是ROS2没关系,和Gazebo的3D引擎和虚拟机的兼容性有关系
发自我的iPhone
… 在 2024年7月25日,21:20,wariot221zjsru ***@***.***> 写道:
ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。
…
在 2024年7月25日,20:56,wariot221zjsru @.***> 写道: 却为何3D加速选项根本取消不掉? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
这个是ros2的包啊。而且我以前一直都是好的。可能是因为我根据别的教程可能更新了gazebo系统。这个和ros1有什么关系?我在b站发过,我以前是好的
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
虚拟机关机以后就可以取消3D图形加速勾选了
在 2024-07-25 21:05:46,"Jay Zhang" ***@***.***> 写道:
ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。
在 2024年7月25日,20:56,wariot221zjsru ***@***.***> 写道:
却为何3D加速选项根本取消不掉?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
github容易不稳定,以后都用邮件回吧 |
我们这里这几天极为不稳定 |
关闭3D图形加速以后还是有问题,而且问题基本一样
在 2024-07-25 21:22:48,"Jay Zhang" ***@***.***> 写道:
这个跟ROS1还是ROS2没关系,和Gazebo的3D引擎和虚拟机的兼容性有关系
发自我的iPhone
在 2024年7月25日,21:20,wariot221zjsru ***@***.***> 写道:
ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。
…
在 2024年7月25日,20:56,wariot221zjsru @.***> 写道: 却为何3D加速选项根本取消不掉? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
这个是ros2的包啊。而且我以前一直都是好的。可能是因为我根据别的教程可能更新了gazebo系统。这个和ros1有什么关系?我在b站发过,我以前是好的
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
我现在github又上不来了。坐标南京
在 2024-07-25 21:22:48,"Jay Zhang" ***@***.***> 写道:
这个跟ROS1还是ROS2没关系,和Gazebo的3D引擎和虚拟机的兼容性有关系
发自我的iPhone
在 2024年7月25日,21:20,wariot221zjsru ***@***.***> 写道:
ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。
…
在 2024年7月25日,20:56,wariot221zjsru @.***> 写道: 却为何3D加速选项根本取消不掉? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
这个是ros2的包啊。而且我以前一直都是好的。可能是因为我根据别的教程可能更新了gazebo系统。这个和ros1有什么关系?我在b站发过,我以前是好的
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
在 2024-07-25 21:22:48,"Jay Zhang" ***@***.***> 写道:
这个跟ROS1还是ROS2没关系,和Gazebo的3D引擎和虚拟机的兼容性有关系
发自我的iPhone
在 2024年7月25日,21:20,wariot221zjsru ***@***.***> 写道:
ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。
…
在 2024年7月25日,20:56,wariot221zjsru @.***> 写道: 却为何3D加速选项根本取消不掉? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
这个是ros2的包啊。而且我以前一直都是好的。可能是因为我根据别的教程可能更新了gazebo系统。这个和ros1有什么关系?我在b站发过,我以前是好的
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
然后就动不了了
在 2024-07-25 21:22:48,"Jay Zhang" ***@***.***> 写道:
这个跟ROS1还是ROS2没关系,和Gazebo的3D引擎和虚拟机的兼容性有关系
发自我的iPhone
在 2024年7月25日,21:20,wariot221zjsru ***@***.***> 写道:
ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。
…
在 2024年7月25日,20:56,wariot221zjsru @.***> 写道: 却为何3D加速选项根本取消不掉? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
这个是ros2的包啊。而且我以前一直都是好的。可能是因为我根据别的教程可能更新了gazebo系统。这个和ros1有什么关系?我在b站发过,我以前是好的
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
现在是这种情况:
***@***.***:~/ros2_ws$ source install/setup.bash
***@***.***:~/ros2_ws$ ros2 launch wpr_simulation2 wpb_simple.launch.py
[INFO] [launch]: All log files can be found below /home/ubuntu22/.ros/log/2024-07-25-22-01-47-131082-ubuntu22-virtual-machine-7744
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [gzserver-1]: process started with pid [7745]
[INFO] [gzclient-2]: process started with pid [7747]
[INFO] [robot_state_publisher-3]: process started with pid [7749]
[INFO] [spawn_entity.py-4]: process started with pid [7751]
[INFO] [spawn_entity.py-5]: process started with pid [7753]
[robot_state_publisher-3] [INFO] [1721916110.829614445] [robot_state_publisher]: got segment base_footprint
[robot_state_publisher-3] [INFO] [1721916110.829818333] [robot_state_publisher]: got segment base_link
[robot_state_publisher-3] [INFO] [1721916110.829831208] [robot_state_publisher]: got segment base_top_link
[robot_state_publisher-3] [INFO] [1721916110.829837356] [robot_state_publisher]: got segment body_back_link
[robot_state_publisher-3] [INFO] [1721916110.829842767] [robot_state_publisher]: got segment body_link
[robot_state_publisher-3] [INFO] [1721916110.829857957] [robot_state_publisher]: got segment front_link
[robot_state_publisher-3] [INFO] [1721916110.829865802] [robot_state_publisher]: got segment head_link
[robot_state_publisher-3] [INFO] [1721916110.829874946] [robot_state_publisher]: got segment kinect2_camera_frame
[robot_state_publisher-3] [INFO] [1721916110.829885097] [robot_state_publisher]: got segment kinect2_dock
[robot_state_publisher-3] [INFO] [1721916110.829893231] [robot_state_publisher]: got segment kinect2_front_frame
[robot_state_publisher-3] [INFO] [1721916110.829899294] [robot_state_publisher]: got segment kinect2_head_frame
[robot_state_publisher-3] [INFO] [1721916110.833424487] [robot_state_publisher]: got segment kinect2_ir_optical_frame
[robot_state_publisher-3] [INFO] [1721916110.833515747] [robot_state_publisher]: got segment kinect2_rgb_optical_frame
[robot_state_publisher-3] [INFO] [1721916110.833528441] [robot_state_publisher]: got segment laser_link
[ERROR] [gzserver-1]: process has died [pid 7745, exit code 255, cmd 'gzserver /home/ubuntu22/ros2_ws/install/wpr_simulation2/share/wpr_simulation2/worlds/wpb_simple.world -slibgazebo_ros_init.so -slibgazebo_ros_factory.so -slibgazebo_ros_force_system.so'].
[spawn_entity.py-4] [INFO] [1721916112.728407692] [spawn_entity]: Spawn Entity started
[spawn_entity.py-4] [INFO] [1721916112.730502841] [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] [1721916112.737194979] [spawn_entity]: Waiting for entity xml on robot_description
[spawn_entity.py-4] [INFO] [1721916112.766787669] [spawn_entity]: Waiting for service /spawn_entity, timeout = 30
[spawn_entity.py-4] [INFO] [1721916112.774092926] [spawn_entity]: Waiting for service /spawn_entity
[spawn_entity.py-5] [INFO] [1721916112.801294524] [spawn_entity]: Spawn Entity started
[spawn_entity.py-5] [INFO] [1721916112.806255135] [spawn_entity]: Loading entity XML from file /home/ubuntu22/ros2_ws/install/wpr_simulation2/share/wpr_simulation2/models/bookshelft.model
[spawn_entity.py-5] [INFO] [1721916112.814007329] [spawn_entity]: Waiting for service /spawn_entity, timeout = 30
[spawn_entity.py-5] [INFO] [1721916112.818137455] [spawn_entity]: Waiting for service /spawn_entity
[gzclient-2] gzclient: /usr/include/boost/smart_ptr/shared_ptr.hpp:728: typename boost::detail::sp_member_access<T>::type boost::shared_ptr<T>::operator->() const [with T = gazebo::rendering::Camera; typename boost::detail::sp_member_access<T>::type = gazebo::rendering::Camera*]: Assertion `px != 0' failed.
[ERROR] [gzclient-2]: process has died [pid 7747, exit code -6, cmd 'gzclient'].
[spawn_entity.py-4] [ERROR] [1721916142.900715632] [spawn_entity]: Service %s/spawn_entity unavailable. Was Gazebo started with GazeboRosFactory?
[spawn_entity.py-4] [ERROR] [1721916142.901186641] [spawn_entity]: Spawn service failed. Exiting.
[spawn_entity.py-5] [ERROR] [1721916142.924140882] [spawn_entity]: Service %s/spawn_entity unavailable. Was Gazebo started with GazeboRosFactory?
[spawn_entity.py-5] [ERROR] [1721916142.924884956] [spawn_entity]: Spawn service failed. Exiting.
[ERROR] [spawn_entity.py-4]: process has died [pid 7751, exit code 1, cmd '/opt/ros/humble/lib/gazebo_ros/spawn_entity.py -topic robot_description -entity wpb_home -x 0.0 -y 0.0 -Y 0.0 --ros-args'].
[ERROR] [spawn_entity.py-5]: process has died [pid 7753, exit code 1, cmd '/opt/ros/humble/lib/gazebo_ros/spawn_entity.py -file /home/ubuntu22/ros2_ws/install/wpr_simulation2/share/wpr_simulation2/models/bookshelft.model -entity bookshelft_01 -x 3.0 -y 0.0 -Y 3.1415926 --ros-args -r __node:=spawn_entity -r __ns:=/'].
在 2024-07-25 21:22:48,"Jay Zhang" ***@***.***> 写道:
这个跟ROS1还是ROS2没关系,和Gazebo的3D引擎和虚拟机的兼容性有关系
发自我的iPhone
在 2024年7月25日,21:20,wariot221zjsru ***@***.***> 写道:
ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。
…
在 2024年7月25日,20:56,wariot221zjsru @.***> 写道: 却为何3D加速选项根本取消不掉? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
这个是ros2的包啊。而且我以前一直都是好的。可能是因为我根据别的教程可能更新了gazebo系统。这个和ros1有什么关系?我在b站发过,我以前是好的
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
是什么原因 |
报错信息似乎集中在Gazebo上,应该是虚拟机和Gazebo的兼容性问题。建议装双系统
发自我的iPhone
… 在 2024年7月25日,22:04,wariot221zjsru ***@***.***> 写道:
然后就动不了了 在 2024-07-25 21:22:48,"Jay Zhang" @.> 写道: 这个跟ROS1还是ROS2没关系,和Gazebo的3D引擎和虚拟机的兼容性有关系 发自我的iPhone
在 2024年7月25日,21:20,wariot221zjsru @.> 写道: ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。 … 在 2024年7月25日,20:56,wariot221zjsru @.> 写道: 却为何3D加速选项根本取消不掉? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned. 这个是ros2的包啊。而且我以前一直都是好的。可能是因为我根据别的教程可能更新了gazebo系统。这个和ros1有什么关系?我在b站发过,我以前是好的 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>
是什么原因
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
可能是因为之前装了一个ros1的包,但是现在我把它删掉了还是不行
在 2024-07-25 22:07:56,"Jay Zhang" ***@***.***> 写道:
报错信息似乎集中在Gazebo上,应该是虚拟机和Gazebo的兼容性问题。建议装双系统
发自我的iPhone
在 2024年7月25日,22:04,wariot221zjsru ***@***.***> 写道:
然后就动不了了 在 2024-07-25 21:22:48,"Jay Zhang" @.> 写道: 这个跟ROS1还是ROS2没关系,和Gazebo的3D引擎和虚拟机的兼容性有关系 发自我的iPhone
在 2024年7月25日,21:20,wariot221zjsru @.> 写道: ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。 … 在 2024年7月25日,20:56,wariot221zjsru @.> 写道: 却为何3D加速选项根本取消不掉? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned. 这个是ros2的包啊。而且我以前一直都是好的。可能是因为我根据别的教程可能更新了gazebo系统。这个和ros1有什么关系?我在b站发过,我以前是好的 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>
是什么原因
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
百度说不建议装双系统啊。有别的办法吗?
在ros2中安装ros1软件包会导致gazebo环境混乱吗?我想知道是不是这个原因
“
ROS双系统安装
在同一台电脑上安装两个不同版本的ROS(Robot Operating System)通常不是推荐的做法,因为它可能导致环境的混乱和冲突。但如果你有特殊需求,可以按以下步骤进行安装和管理。
安装第一个ROS版本:
确定你的操作系统版本兼容ROS。
访问ROS官网获取安装指南。
按照指南安装对应版本的ROS。
安装第二个ROS版本:
使用虚拟机(如VirtualBox或VMware)创建一个隔离环境。
在虚拟机中安装一个新的操作系统(例如,Ubuntu)。
在新的操作系统中安装第二个ROS版本。
管理两个ROS版本:
使用source命令在每次使用时激活对应的ROS环境。
确保两个ROS环境的路径不冲突。
例如,如果你想要在Ubuntu上安装两个ROS版本(如ROS Kinetic和ROS Melodic),可以这样做:
# 安装ROS Kinetic
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt update
sudo apt install ros-kinetic-desktop-full
sudo rosdep init
rosdep update
echo"source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
# 安装ROS Melodic
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key F42ED6FBAB17C654
sudo apt update
sudo apt install ros-melodic-desktop-full
sudo rosdep init
rosdep update
echo"source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc
在使用时,你需要明确指定你要使用的ROS版本的环境,例如:
# 使用ROS Kinetic
source /opt/ros/kinetic/setup.bash
# 使用ROS Melodic
source /opt/ros/melodic/setup.bash
请注意,这只是一个示例安装过程,具体步骤可能会根据ROS版本和操作系统的不同而有所变化。在实际操作中,可能需要处理依赖关系和版本冲突问题。
提示:AI自动生成,仅供参考
”
在 2024-07-25 22:07:56,"Jay Zhang" ***@***.***> 写道:
报错信息似乎集中在Gazebo上,应该是虚拟机和Gazebo的兼容性问题。建议装双系统
发自我的iPhone
在 2024年7月25日,22:04,wariot221zjsru ***@***.***> 写道:
然后就动不了了 在 2024-07-25 21:22:48,"Jay Zhang" @.> 写道: 这个跟ROS1还是ROS2没关系,和Gazebo的3D引擎和虚拟机的兼容性有关系 发自我的iPhone
在 2024年7月25日,21:20,wariot221zjsru @.> 写道: ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。 … 在 2024年7月25日,20:56,wariot221zjsru @.> 写道: 却为何3D加速选项根本取消不掉? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned. 这个是ros2的包啊。而且我以前一直都是好的。可能是因为我根据别的教程可能更新了gazebo系统。这个和ros1有什么关系?我在b站发过,我以前是好的 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>
是什么原因
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
这个和bash有关系吗 |
我的gazebo版本是v11.10.2 |
有时候编译不行,有时候编译行但是运行就像上面那样报错。还有我以前直接用colcon build好像也是行的。colcon build --symlink-install symlink是干嘛的
在 2024-07-25 22:07:56,"Jay Zhang" ***@***.***> 写道:
报错信息似乎集中在Gazebo上,应该是虚拟机和Gazebo的兼容性问题。建议装双系统
发自我的iPhone
在 2024年7月25日,22:04,wariot221zjsru ***@***.***> 写道:
然后就动不了了 在 2024-07-25 21:22:48,"Jay Zhang" @.> 写道: 这个跟ROS1还是ROS2没关系,和Gazebo的3D引擎和虚拟机的兼容性有关系 发自我的iPhone
在 2024年7月25日,21:20,wariot221zjsru @.> 写道: ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。 … 在 2024年7月25日,20:56,wariot221zjsru @.> 写道: 却为何3D加速选项根本取消不掉? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned. 这个是ros2的包啊。而且我以前一直都是好的。可能是因为我根据别的教程可能更新了gazebo系统。这个和ros1有什么关系?我在b站发过,我以前是好的 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>
是什么原因
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
我问了一下kimi,这样说:
从您提供的日志信息来看,您在运行 wpr_simulation2 软件包时遇到了两个主要问题:
服务调用问题:spawn_entity.py 脚本在等待 spawn_entity 服务,并且最终成功调用了该服务并生成了实体。这表明服务调用过程可能有些延迟,但最终是成功的。
Gazebo 断言失败:gzserver 和 gzclient 进程因为断言失败而退出。这是更严重的问题,因为它们是 Gazebo 仿真的核心组件。错误信息指出 Boost 使用的 shared_ptr 访问了一个空指针。
解决步骤:
检查 Gazebo 版本和兼容性
确保您使用的 Gazebo 版本与 ROS 2 版本兼容。不兼容的版本可能导致运行时错误。
更新和升级
更新您的 ROS 2 工作空间和 Gazebo:
bash
colcon build --symlink-install
sudoapt-get update &&sudoapt-get upgrade
检查工作空间
确保 wpr_simulation2 包正确构建,并且所有依赖都已解决。
检查模型文件
检查 bookshelft.model 文件是否存在并且格式正确。如果模型文件损坏或格式不正确,可能会导致 Gazebo 无法正确加载模型。
检查服务和话题
确保 spawn_entity 服务可用,并且 robot_description 主题正在发布正确的信息。
使用 ROS 2 调试工具
使用 ros2 topic 和 ros2 service 命令来检查相关的话题和服务状态。
检查日志和错误信息
分析 Gazebo 的日志文件,查找可能导致断言失败的原因。
检查 Boost 版本
Boost 库的版本可能与 Gazebo 或 ROS 2 不兼容。尝试更新 Boost 库。
环境设置
确保您已经正确地设置了环境,包括 ROS 2 的环境变量和 Python 路径。
重新安装 Gazebo
如果上述步骤都不能解决问题,考虑重新安装 Gazebo。
查看社区和文档
查看 ROS 2 和 Gazebo 的社区论坛,看看是否有其他用户遇到类似问题,并找到解决方案。
联系软件维护者
如果问题依然无法解决,您可能需要联系 wpr_simulation2 包的维护者或开发者,以获取更专业的帮助。
请注意,解决这类问题通常需要对系统和软件包有深入的了解,上述步骤可能需要根据您的具体情况进行调整。
所以说主要问题就是Gazebo 断言失败
在 2024-07-25 22:07:56,"Jay Zhang" ***@***.***> 写道:
报错信息似乎集中在Gazebo上,应该是虚拟机和Gazebo的兼容性问题。建议装双系统
发自我的iPhone
在 2024年7月25日,22:04,wariot221zjsru ***@***.***> 写道:
然后就动不了了 在 2024-07-25 21:22:48,"Jay Zhang" @.> 写道: 这个跟ROS1还是ROS2没关系,和Gazebo的3D引擎和虚拟机的兼容性有关系 发自我的iPhone
在 2024年7月25日,21:20,wariot221zjsru @.> 写道: ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。 … 在 2024年7月25日,20:56,wariot221zjsru @.> 写道: 却为何3D加速选项根本取消不掉? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned. 这个是ros2的包啊。而且我以前一直都是好的。可能是因为我根据别的教程可能更新了gazebo系统。这个和ros1有什么关系?我在b站发过,我以前是好的 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>
是什么原因
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
这个软件包最新的gazebo ros2 和boost可以用吧
在 2024-07-25 22:07:56,"Jay Zhang" ***@***.***> 写道:
报错信息似乎集中在Gazebo上,应该是虚拟机和Gazebo的兼容性问题。建议装双系统
发自我的iPhone
在 2024年7月25日,22:04,wariot221zjsru ***@***.***> 写道:
然后就动不了了 在 2024-07-25 21:22:48,"Jay Zhang" @.> 写道: 这个跟ROS1还是ROS2没关系,和Gazebo的3D引擎和虚拟机的兼容性有关系 发自我的iPhone
在 2024年7月25日,21:20,wariot221zjsru @.> 写道: ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。 … 在 2024年7月25日,20:56,wariot221zjsru @.> 写道: 却为何3D加速选项根本取消不掉? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned. 这个是ros2的包啊。而且我以前一直都是好的。可能是因为我根据别的教程可能更新了gazebo系统。这个和ros1有什么关系?我在b站发过,我以前是好的 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>
是什么原因
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
我现在重新装了一遍ros2系统就好了
在 2024-07-25 22:07:56,"Jay Zhang" ***@***.***> 写道:
报错信息似乎集中在Gazebo上,应该是虚拟机和Gazebo的兼容性问题。建议装双系统
发自我的iPhone
在 2024年7月25日,22:04,wariot221zjsru ***@***.***> 写道:
然后就动不了了 在 2024-07-25 21:22:48,"Jay Zhang" @.> 写道: 这个跟ROS1还是ROS2没关系,和Gazebo的3D引擎和虚拟机的兼容性有关系 发自我的iPhone
在 2024年7月25日,21:20,wariot221zjsru @.> 写道: ROS1的课程,很多虚拟机的同学都要关闭3D加速才能显示模型。建议装双系统。 … 在 2024年7月25日,20:56,wariot221zjsru @.> 写道: 却为何3D加速选项根本取消不掉? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned. 这个是ros2的包啊。而且我以前一直都是好的。可能是因为我根据别的教程可能更新了gazebo系统。这个和ros1有什么关系?我在b站发过,我以前是好的 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>
是什么原因
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
twx@wp:~/ros2_ws/src/wpr_simulation2/scripts$ cd ~/ros2_ws
colcon build --symlink-install
Starting >>> wpr_simulation2
--- stderr: wpr_simulation2
In file included from /opt/ros/humble/include/rclcpp/rclcpp/logging.hpp:24,
from /opt/ros/humble/include/rclcpp/rclcpp/client.hpp:40,
from /opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp:24,
from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /home/twx/ros2_ws/src/wpr_simulation2/src/objects_publisher.cpp:1:
/home/twx/ros2_ws/src/wpr_simulation2/src/objects_publisher.cpp: In member function ‘void ObjectsPublisher::pointcloudCallback(sensor_msgs::msg::PointCloud2_<std::allocator >::SharedPtr)’:
/home/twx/ros2_ws/src/wpr_simulation2/src/objects_publisher.cpp:154:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘std::vectorpcl::PointIndices::size_type’ {aka ‘long unsigned int’} [-Wformat=]
154 | RCLCPP_INFO(this->get_logger(), "Number of clusters: %d", cluster_indices.size());
| ^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
| |
| std::vectorpcl::PointIndices::size_type {aka long unsigned int}
/home/twx/ros2_ws/src/wpr_simulation2/src/objects_publisher.cpp:154:59: note: format string is defined here
154 | RCLCPP_INFO(this->get_logger(), "Number of clusters: %d", cluster_indices.size());
| ~^
| |
| int
| %ld
Finished <<< wpr_simulation2 [28.5s]
Summary: 1 package finished [28.7s]
1 package had stderr output: wpr_simulation2
The text was updated successfully, but these errors were encountered: