'double' is not a supported type in ROS messages?
Hello all, I meet two issues for the data type delcaration: Q1: I define the message in the svr file as below--but when I check the srv by rossrv show I got error message like:
unknown srv type... Cannot locate message [double] in package with paths... blablabla..
So I can not define double type data in srv file? instead uint32 works OK.. But ROS should support double , correct?
uint8 Number #0/1/2/3
string Name
bool In_Out #(true) Out(False)
double TimeStamp #double??
double Duration #double??
---
string Feedback
bool PaySucc
Q2: In the relevant Server.cpp file, I define a struct data class as below, but this time the IDE (I am using QT creator w/ROS plugin) report that unknow type of "string", and double is support instead..
This really confused me.. is this the QTcreator issue? BTW, is there a standard data type roscpp support can refer to?
typedef struct Req
{
uint8_t Number; //0/1/2/3
string Name;
bool IN_OUT; //(true) Out(False)
double TimeStamp; //double??
double Duration; //double??
/******/
string Feedback;
bool Succ; //Success(true) Fail (false)
} Req;