栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > C/C++/C#

ROS

C/C++/C# 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ROS

查看topic和message rostopic -h 帮助

rostopic list 列出所有的topic
rostopic echo topic名称 显示topic上发布的message
rostopic type topic名称 查看topic的message类型
rosmsg show message名称 查看message数据结构

1.记住在用TF的一些坐标系变换的包,记得用python2的终端,也就是退出conda的默认base环境,就是conda deactivate
2.

rosrun tf04_test test_p.launch
[rosrun] Couldn't find executable named test_p.launch below /home/pi/demo02_ws/src/tf04_test
[rosrun] Found the following, but they're either not files,
[rosrun] or not executable:
[rosrun]   /home/pi/demo02_ws/src/tf04_test/launch/test_p.launch

launch 文件要用roslaunch,而不是rosrun

3.c++加入头文件报错

#include "ros/ros.h"不存在之类 的错误

解决:
在Cmakelists.txt中解除这两个地方的注释

add_executable(hello_vscode_c src/hello_vscode_c.cpp)
target_link_libraries(hello_vscode_c
  ${catkin_LIBRARIES}
)

注意两个地方项目名hello_vscode_c要相同,且尽量跟cpp文件同名。
4. 在rqt界面的重放bag时要右键鼠标,点击publish才能让乌龟动起来。

  1. launch或者urdf的子标签可能不写,但属性一定要写。
    比如中有4个子标签,立方体、圆柱、球体、皮肤,它们可以不用的时候,可以不写。但如果用了box这个子标签,就一定要加上size这个属性。

    
        
        
            
            
                
                
                
                
                
                
                
                
            
            
            

            
            
                
            
        
    

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/920700.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号