如果要在ROS中订阅imu topic,编写一下package.xml文件
时间: 2023-03-07 19:17:41 浏览: 111
兼容ros1 ros2自定义消息的cmakelists.txt文件与package.xml文件
要在ROS中订阅imu topic,package.xml文件应该包括:<package>
<name>imu_topic_subscribe</name>
<version>0.0.1</version>
<description>Package to subscribe to imu topics</description> <maintainer email="you@example.com">Your Name</maintainer> <license>TODO</license> <buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<build_depend>message_generation</build_depend> <run_depend>roscpp</run_depend>
<run_depend>message_runtime</run_depend> <export>
<cpp cflags="-std=c++11" />
</export>
</package>
阅读全文