ROS與C++

  • 構建工做空間 catkin_make
  • 構建Catkin包 catkin_create_pkg
# This is an example, do not try to run this
# catkin_create_pkg <package_name> [depend1] [depend2] [depend3]

自定義容器分配器:html

ROS_DECLARE_MESSAGE_WITH_ALLOCATOR(visualization_msgs::Marker, MyMarker, MyAllocator);
序列化: ros::serialization::serialize()
反序列: ros::serialization::()deserialize
  • 服務
  • 參數服務器
roscpp有兩個版本的API接口:bare版和handle版。
bare版:在 ros::param 命令空間下。
handle版:經過ros::NodeHandle接口使用。
  • NodeHandles
  • Logging(日誌)
  • Time(時間)
roslib提供全部時間版本構建:
ros::Time, ros::Duration, ros::Rate
ros::WallTime, ros::WallDuration, ros::WallRate
  • Exceptions(異常)

roscpp全部的異常都繼承基類ros::Exception

服務器

參考連接: https://www.ncnynl.com/archives/201701/1273.htmlthis

相關文章
相關標籤/搜索