Important tips:
1. if you change the package name after cloning this package, you need to modify three files which are
1) in CMakeLists.txt
project(pioneer3_control_ros) -->change the package name "pioneer3_control_ros" to what you rename it.
2) in /cfg/RosAria.cfg
PACKAGE = "pioneer3_control_ros" -->change the package name "pioneer3_control_ros" to what you rename it.
3) in package.xml
<name>pioneer3_control_ros</name> -->change the package name "pioneer3_control_ros" to what you rename it.
if you don't do this, when you want to compile these files, it won't succeed.
2. follow the document "pioneer3_control_ros" to understad this package.
3. It is not allowed to run two ros nodes with the same name, thus in each robot the ros node name is differnent,
which is defined as follows
{
//for local computer
ros::init(argc,argv, "RosAria_local");
...
}
thus, even the same topics published in different robots have different name, e.g.,
in local computer,
topic "sonar" is named as "/RosAria_local/sonar"
while in another computer with IP address 192.168.0.254, the name is
"/RosAria_p3at_4_254/sonar".
so, if you can't get the message correctly, please check whether the topic you subscribe is right.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
pioneer3_control_ros-master.rar (20个子文件)
pioneer3_control_ros-master
AriaRobot.h 27KB
android_teleop.cpp 4KB
cfg
RosAria.cfg 1KB
p3_sonar.cpp 4KB
p3_kinect.cpp 2KB
test_cmd.cpp 972B
rosRemoteTest.launch 3KB
pioneer3_control_ros-master
rob_key_multi_robot_con_separately.cpp 13KB
CMakeLists.txt 5KB
p3_sonar_following_moving_object.cpp 11KB
rob_key.cpp 2KB
RosAria.cpp 622B
robotWander.cpp 913B
package.xml 2KB
readme.txt 1KB
msg
BumperState.msg 56B
pioneer3_control_ros_18AUG14.pdf 476KB
test_record_data.cpp 1KB
robotDemo.cpp 738B
RosAria_original.cpp 22KB
共 20 条
- 1
资源评论
drliufei
- 粉丝: 1
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功