【ROS, C++】ROSのpub/subをクラスの中で使う書き方
C++のクラスでROSを使う書き方をご紹介します。クラスを使わないROSのソースコード#include #include void Publication(void){ std_msgs::String pub_msg; pub_msg.data = “This is pub msg”; ros::Publisher pub = nh.advertise("/pub_msg", 1); pub.publish(
2019/05/31 00:59