
ROS
joesrobot
这个作者很懒,什么都没留下…
展开
-
webots2023报错问题:INFO: ‘Ros2Supervisor‘ extern controller: connected.INFO: The simulation has run!Sa
在ros2中,colcon build的运行文件在install 中,所以修改的wbt文件也需要同步修改。可以直接修改install中的wbt文件,也可以修改src中的再重新colcon build。由于工程运行时,加载了wbt文件,是无法直接进行wbt文件修改的。5、重新运行前序的工程,可以看到环境更新了。1、找到自己的webots软件安装目录;3、打开上述要修改的wbt环境。2、执行: ./webots。4、修改所需,点击保存即可;原创 2024-06-14 09:37:56 · 239 阅读 · 0 评论 -
webots2020升级至webots2021b版本解决每次开机升级检测很久问题
在更新webots2021b后,官方由于减少安装包的大小,便于下载,因此每次在启动时,需要在线检测确实的插件进行下载,偶尔网速不好的情况下,会导致启动特别慢,或加载失败情况。https://raw.githubusercontent.com/cyberbotics/webots/R2021b/ (其他版本自行对应即可)3、将源码包解压后,webots内部所有文件,直接skip(注意不是替换哈)塞进webots安装包中去。1、下载对应版本的官方源码包;2、下载简化后的安装包。原创 2023-12-27 13:03:52 · 616 阅读 · 0 评论 -
ros自己创建的包依赖package1,编译总是得来两遍的解决方法
在自己创建的一个功能包,需要引用package1中的msg或srv头文件时,第一次编译,总是报错,找不到package1的头文件,再次编译,才可以通过而不报错。主要还是包编译时序的问题,自己的包先于package1的编译,就会导致此问题。2、关键一步,在add_dependencies中添加依赖包的指向。再次去测试,初次编译,不再报警了,一遍过,超丝滑!1、将需要依赖的包,尽量放在前面。原创 2023-06-19 16:12:32 · 455 阅读 · 0 评论 -
webots搭建好的雷达,但是rviz中加载打出的激光点与实际有角度或位移偏差,无法定位
一、问题点:webots搭建好的雷达,但是rviz中加载打出的激光点与实际有角度或位移偏差,无法定位。在webots中的小车朝向正对某个障碍物,但是在rviz中显示的pose朝向与webots朝向偏差90度。二、解决:检查发现为雷达在webots中的搭建角度有问题,重新将角度逆时针旋转90度后,rviz中的pose朝向与webots的朝向可以匹配ok。备注:若是在rviz中定位经常失败,偏差特别大,检查雷达的安装角度是不是没有rao红轴x旋转180度导致的。贴图麻烦,就不贴了,学习问题,仅供参考。...原创 2022-06-26 23:17:03 · 1273 阅读 · 0 评论 -
CMake安装时报错:The current CMakeCache.txt directory /home/joes/jiao/01_YHWorker/03_setupbag/cmake-3.19.2
一、问题描述:CMake Error: The current CMakeCache.txt directory /home/joes/jiao/01_YHWorker/03_setupbag/cmake-3.19.2/CMakeCache.txt is different than the directory /home/joes/jiao/cmake-3.19.2 where CMakeCache.txt was created. This may result in binaries being原创 2022-03-14 15:17:08 · 663 阅读 · 1 评论 -
[spawn_model1-4] process has died [pid 6923, exit code 1, cmd /opt/ros/melodic/lib/gazebo_ros/spawn_
一、问题描述:joes@joes-PC:~/jiao/ROS_Projects/05_aotexueyuan_Project$ roslaunch ros23_urdf02_gazebo demo01_helloworld.launch... logging to /home/joes/.ros/log/194743e4-922e-11ec-a5c5-84a938321ff7/roslaunch-joes-PC-6862.logChecking log directory for disk usag原创 2022-02-20 17:25:26 · 10314 阅读 · 14 评论 -
VScode安装中文插件后,重启不生效问题解决
一、问题描述:安装插件后,重启IDE,中文并没有如期出现二、解决:在vscode中,按住ctr+shift+p,在出现的输入框中,输入Configure Display Language,在弹出的语言中,选中zh-cn,软件提示重启。点击重启按钮后,中文生效了。...原创 2022-02-18 09:07:35 · 10883 阅读 · 13 评论 -
运行Rivz报错Error in sitecustomize; set PYTHONVERBOSE for traceback:NameError: name ‘reload‘ is not def
一、故障描述:joes@joes:~$ rvizError in sitecustomize; set PYTHONVERBOSE for traceback:NameError: name 'reload' is not definedTraceback (most recent call last): File "/usr/lib/command-not-found", line 27, in <module> from CommandNotFound.util imp...原创 2022-02-08 22:22:52 · 881 阅读 · 0 评论 -
rosparam set /background_r 0,进行参数设置命令式报警
一、问题描述:joes@joes:~/joesrobot$ rosparam set /background_r 0/opt/ros/kinetic/lib/python2.7/dist-packages/rosparam/__init__.py:375: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://原创 2022-01-24 11:10:47 · 619 阅读 · 0 评论 -
编译时报警fatal:jsk_rviz_plugins/PictogramArray.h: No such file or directory
一、问题描述:在编译工程时,报警:fatal:jsk_rviz_plugins/PictogramArray.h: No such file or directory二、解决:sudo apt-get install ros-kinetic-jsk-rviz-plugins原创 2022-01-12 17:05:38 · 1101 阅读 · 0 评论 -
[ERROR] [1641275260.389361305, 270.918000000]: SpawnModel: Failure - model name car already exists.
一、问题描述:joes@joes:~/jiao/ROS_Project/20_jiao$ roslaunch car_robot start_car_gazebo.launch... logging to /home/joes/.ros/log/d365cc6e-6d21-11ec-ab78-14f6d8d77445/roslaunch-joes-4115.logChecking log directory for disk usage. This may take awhile.Press Ct原创 2022-01-04 13:55:05 · 3017 阅读 · 1 评论 -
can‘t multiply sequence by non-int of type ‘unicode‘when evaluating expression ‘m*(3*r*r+h*h)/12‘
一、问题描述:joes@joes:~/jiao/ROS_Project/20_jiao$ roslaunch car_robot start_car_gazebo.launch... logging to /home/joes/.ros/log/cc01b23a-6d08-11ec-ab78-14f6d8d77445/roslaunch-joes-17680.logChecking log directory for disk usage. This may take awhile.Press C原创 2022-01-04 11:09:41 · 1028 阅读 · 1 评论 -
坐标msg消息
1.geometry_msgs/TransformStamped命令行键入:rosmsg info geometry_msgs/TransformStampedstd_msgs/Header header #头信息 uint32 seq #|-- 序列号 time stamp #|-- 时间戳 string frame_id原创 2021-12-20 18:04:59 · 139 阅读 · 0 评论 -
.bashrc文件——终端的格式控制
# ~/.bashrc: executed by bash(1) for non-login shells.# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)# for examples# If not running interactively, don't do anythingcase $- in *i*) ;; *) return;;esac# don't put .原创 2021-12-20 13:39:09 · 297 阅读 · 0 评论 -
ROS通讯机制的常用命令
ROS/CommandLineTools - ROS Wiki1、rosnode:rosnode ping 测试到节点的连接状态rosnode list 列出活动节点rosnode info 打印节点信息rosnode machine 列出指定设备上节点rosnode kill 杀死某个节点rosnode cleanup 清除不可连接的节点2、rostopicrotopic bw 显示主题使用的带宽rostopic delay 显示带有header 的主题延迟rostopic.原创 2021-12-09 15:07:18 · 252 阅读 · 0 评论 -
ROS包中的 package.xml 文件翻译
<?xml version="1.0"?><!-- 格式: 以前是 1,推荐使用格式 2 --><package format="2"> <!-- 包名 --> <name>ros02_hello_vscode</name> <!-- 版本 --> <version>0.0.0</version> <!-- 描述信息 --> <description&g.原创 2021-12-08 13:41:54 · 148 阅读 · 0 评论 -
ROS包中的 CMakeLists.txt 文件翻译
cmake_minimum_required(VERSION 3.0.2) # 所需 cmake 版本project(ros02_hello_vscode) # 包名称,会被 ${PROJECT_NAME} 的方式调用## Compile as C++11, supported in ROS Kinetic and newer## 编译为C++11,在ROS和更新版本中受支持 # add_compile_options(-std=c++11)## Find c.原创 2021-12-08 13:40:54 · 195 阅读 · 0 评论 -
小觅摄像头SDK文件
在网上找了半天没找着,github貌似也上不去。以下是在本地拷贝出来的,也能用。下载地址:链接: https://pan.baidu.com/s/1zubMafy_htuqJVSnZVmhcg提取码: wnv5原创 2021-11-26 18:55:21 · 380 阅读 · 0 评论 -
Assertion `bAttached && “A new DepthBuffer for a RenderTarget was created, but after creation“ “it s
一、问题描述:gzserver: /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreRenderSystem.cpp:546: virtual void Ogre::RenderSystem::setDepthBufferFor(Ogre::RenderTarget*): Assertion `bAttached && "A new DepthBuffer for a RenderTarget was created原创 2021-11-19 15:21:53 · 802 阅读 · 0 评论 -
gazebo仿真时在加入差分运动插件后没有cmd_vel话题
一、问题描述:gazebo仿真时在加入差分运动插件后没有cmd_vel话题joes@joes:~/jiao/ROS_Project$ roslaunch ros23_urdf02_gazebo demo03_gazebo_env.launch... logging to /home/joes/.ros/log/6cceca6e-4837-11ec-9542-14f6d8d77445/roslaunch-joes-10392.logChecking log directory for disk u原创 2021-11-18 20:01:09 · 3046 阅读 · 1 评论 -
load() missing 1 required positional argument: ‘Loader‘
一、问题描述在launch中加载了外部的yaml或者xml文件,运用了command=“load”命令,疯狂报警load() missing 1 required positional argument: ‘Loader‘。二、原因:当前pyyaml 版本 6.0 与当前 Google Colab 导入包的方式不兼容。因此,只需将 pyyaml 版本降级到与当前 Google Colab 导入方式兼容的 5.4.1。三、措施:执行:pip install pyyaml==5.4.1原创 2021-11-18 14:15:45 · 1240 阅读 · 0 评论 -
rosrun rqt_graph rqt_graph报警:AttributeError: ‘ElementTree‘ object has no attribute ‘getiterator‘
一.问题描述:joes@joes:~$ rosrun rqt_graph rqt_graphFound metadata in lib /home/joes/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqeglfs.so, metadata={ "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "Met...原创 2021-11-08 09:59:39 · 538 阅读 · 0 评论 -
ros包执行rosrun时,报警:AttributeError: ‘Thread‘ object has no attribute ‘isAlive‘
一.问题描述:joes@joes:~/jiao/Project/demo01_ws$ rosrun helloworld helloworld_p.py[INFO] [1636100465.680519]: Hello World by python_____from JiaozhidongError in atexit._run_exitfuncs:Traceback (most recent call last): File "/opt/ros/kinetic/lib/python2.7/.原创 2021-11-05 16:39:19 · 2593 阅读 · 0 评论 -
联想拯救者 Y7000 Ubuntu 16.04无线网卡驱动安装踩坑教程
一.问题描述:在安装新系统后,参考:联想拯救者 R7000 Ubuntu 16.04 系统和显卡驱动安装踩坑教程_xyt723916的博客-优快云博客教程,自己一步步尝试安装,还是有问题,wifi总是无法显示。后来发现是内核原来以升级成 5.2.21-050221-generic ,所以wifi无法激活。二.解决步骤:由于我的电脑适配的就是 5.2.21-050221-generic 内核,所有尝试重新讲内核5.2.21-050221-generic卸载,然后,再重装,w.原创 2021-11-05 11:26:06 · 3034 阅读 · 0 评论 -
ImportError: dynamic module does not define module export function (PyInit__tf2)
一.操作:roslaunch turtle_tf turtle_tf_demo.launch二.报错:File "/opt/ros/kinetic/lib/python2.7/dist-packages/tf2_py/__init__.py", line 38, in <module> from ._tf2 import *ImportError: dynamic module does not define module export function (PyInit...原创 2021-11-03 10:22:34 · 7857 阅读 · 0 评论 -
安装ROS时报警:sh: 1: lsb_release: not found
一、故障描述:sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'sh: 1: lsb_release: not found二、解决方法:出现以上报警,主要是当前的source源无法使用导致的,去网上搜索最新的ROS Sources源,更新后,重新执行上述命令即可。后续的安装步骤和ROSW.原创 2021-10-17 15:43:47 · 4327 阅读 · 4 评论 -
ROS探索总结-5.创建简单的机器人模型smartcar运行代码,无法自动旋转动作.
一.问题描述根据教材,编译成功,在网上搜索,发现是在Rviz软件按里面的fixed frame里面不存在odom这个选项,.并且检查终端中,存在报警:ERROR: cannot launch node of type [arbotix_python/driver.py]: can't locate node [driver.py] in package [arbotix_python]二.解决方法参考:https://blog.youkuaiyun.com/weixin_42591529/articl原创 2021-09-03 14:59:56 · 598 阅读 · 0 评论 -
.rviz文件存在opt目录下,修改时无法更新更新保存
一.问题描述在/opt/ros/kinetic/share/urdf_tutorial/rviz保存下的.rviz文件,在rviz环境中修改了部分参数,保存时发现无法更新保存.二.解决方法找到对应的文件,可以将该.rviz文件复制到自己建的catkin_ws/src/项目内,然后在launch文件中修改成当前的工程项目路径即可.(<node name="rviz" pkg="rviz" type="rviz" args="-d $(find urdf_tutorial)/urdf.原创 2021-09-03 09:39:29 · 924 阅读 · 0 评论 -
roslaunch时报警:.vcg file, which is the old rviz config format
一.报警现象:... logging to /home/joes/.ros/log/8d277192-0c52-11ec-8a4d-14f6d8d77445/roslaunch-joes-4758.logChecking log directory for disk usage. This may take awhile.Press Ctrl-C to interruptDone checking log file disk usage. Usage is <1GB.started ro原创 2021-09-03 09:19:29 · 383 阅读 · 0 评论