creat the publisher and use self-defined message
来源:互联网 发布:淘宝联盟怎么满减 编辑:程序博客网 时间:2024/06/01 18:55
Step 1
creat the work space and catkin_init_workspace(in src folder) &catkin_make(in workspace folder)
Step 2
creat the package (in src),catkin_create_pkg
Step 3
copy and edit the code in the jan_7_duckietown
main change: the location of the message 'TW..' class
Step 4
add such code in the CMakeLists.txt in package
add_executable(car_publisher src/car_publisher.cpp)
target_link_libraries(car_publisher ${catkin_LIBRARIES})
add_dependencies(car_publisher ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
Step 5
add msg-'TW..'into car_controller'
Step 6
edit the CMakelists.txt in package
1.find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
message_generation ##added
)
2.
add_message_files(
FILES
Twist2DStamped.msg
# Message2.msg
)
3.
generate_messages(
DEPENDENCIES
std_msgs
)
4.
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES car_controller
CATKIN_DEPENDS message_runtime
# DEPENDS system_lib
)
Step 7 edit the package.xml
<run_depend>message_runtime</run_depend>
<build_depend>message_generation</build_depend>
creat the work space and catkin_init_workspace(in src folder) &catkin_make(in workspace folder)
Step 2
creat the package (in src),catkin_create_pkg
Step 3
copy and edit the code in the jan_7_duckietown
main change: the location of the message 'TW..' class
Step 4
add such code in the CMakeLists.txt in package
add_executable(car_publisher src/car_publisher.cpp)
target_link_libraries(car_publisher ${catkin_LIBRARIES})
add_dependencies(car_publisher ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
Step 5
add msg-'TW..'into car_controller'
Step 6
edit the CMakelists.txt in package
1.find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
message_generation ##added
)
2.
add_message_files(
FILES
Twist2DStamped.msg
# Message2.msg
)
3.
generate_messages(
DEPENDENCIES
std_msgs
)
4.
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES car_controller
CATKIN_DEPENDS message_runtime
# DEPENDS system_lib
)
Step 7 edit the package.xml
<run_depend>message_runtime</run_depend>
<build_depend>message_generation</build_depend>
阅读全文
0 0
- creat the publisher and use self-defined message
- [收藏]SOA:The Subscriber-Publisher Model, Introduction and Implementation
- [收藏]SOA:The Subscriber-Publisher Model, Introduction and Implementation
- [收藏]SOA:The Subscriber-Publisher Model, Introduction and Implementation
- [收藏]SOA:The Subscriber-Publisher Model, Introduction and Implementation
- RAMDisk的Creat和Use
- Creat Delete and Insert
- Creat Binary Tree and by means of Postorder and Preorder through the Tree
- Publisher and printer
- Can't use 'defined(@array)' (Maybe you should just omit the defined()?)
- Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl
- sliverlight: use the IsolatedStorageSettings save user message or user settting
- Message 'You cannot use the EurekaLog package in other packages'.
- Turning the Message on and off
- Read the book - Self Leadership and the One Minute Manager
- How to Create and Use the DLL
- The use method of afxDump and TRACE
- How to use the CONVERSION_EXIT_PARVW_INPUT and CONVERSION_EXIT_PARVW_OUTPUT
- 两两交换链表中的节点
- 第一行代码 第三章 ListView
- ssh connection in ros
- pycharm中遇到“unresolved reference 'name'..."问题
- Leetcode553. Optimal Division
- creat the publisher and use self-defined message
- zero-shot learning 论文三篇小结
- 视图控制器(入门级)
- 清楚电脑中卸载不干净的垃圾文件
- freeswitch在通道中添加odbc_dsn
- 《简明Python教程》之输入与输出
- 《权限系列shiro+cas》----修改cas的默认登录页
- github入门到上传本地项目
- dpkg命令的用法