include_geometry_msgs_Twist.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00035 bool getTopicMessage(int topicSpecifier, geometry_msgs::Twist &msg){
00036 return ((ROSiFace<geometry_msgs::Twist,geometry_msgs::Twist::ConstPtr>*)(_openTopics[topicSpecifier]))->getMessage(msg);
00037 }
00038
00045 bool getUpdateTopicMessage(int topicSpecifier, geometry_msgs::Twist &msg){
00046 if(_openTopics[topicSpecifier]->updateMessage());
00047 return ((ROSiFace<geometry_msgs::Twist,geometry_msgs::Twist::ConstPtr>*)(_openTopics[topicSpecifier]))->getMessage(msg);
00048 }
00049
00056 bool writeTopic(int topicSpecifier, const geometry_msgs::Twist &msg){
00057 return ((ROSiFace<geometry_msgs::Twist,geometry_msgs::Twist::ConstPtr>*)(_openTopics[topicSpecifier]))->sendMessage(msg);
00058 }
00059
00063 void getTopicMessages(int topicSpecifier, deque<geometry_msgs::Twist> &msg){
00064 ((ROSiFace<geometry_msgs::Twist,geometry_msgs::Twist::ConstPtr>*)(_openTopics[topicSpecifier]))->getMsgList(msg);
00065 }
00066
00070 void getUpdateTopicMessages(int topicSpecifier, deque<geometry_msgs::Twist> &msg){
00071 if(_openTopics[topicSpecifier]->updateMessage());
00072 ((ROSiFace<geometry_msgs::Twist,geometry_msgs::Twist::ConstPtr>*)(_openTopics[topicSpecifier]))->getMsgList(msg);
00073 }
00074
00075