Mise à jour de 'daily_work.md'

This commit is contained in:
QLeblanc 2020-06-12 15:00:22 +02:00
parent aa20a0361e
commit ad2792a972

View file

@ -213,4 +213,7 @@ J'essaie de me familiariser avec ROS:
* https://books.google.fr/books?id=0y1dDwAAQBAJ&pg=PA186&lpg=PA186&dq=comprendre+topic+ros&source=bl&ots=agjliug8j9&sig=ACfU3U08zjonaqnHVJ0MPIXwndG_YWyuBg&hl=fr&sa=X&ved=2ahUKEwj_iILYpvzpAhWMzYUKHVbUCA4Q6AEwCHoECAoQAQ#v=onepage&q=comprendre%20topic%20ros&f=false
Il faut utiliser ros.h (puis ros::init dans le code après int main()) pour que mon node "localisation" apparaisse. (et std_msgs/string.h pour la communiation ?)
Il faut utiliser ros.h (puis ros::init dans le code après int main()) pour que mon node "localisation" apparaisse. (et std_msgs/string.h pour la communiation ?)
Pour utiliser un topic:
ros::Subscriber subscriber_obj = nodehandle.subscribe ("topic_name", 1000, callbackfunctio)