Convert from Int32MultiArray into vector (roscpp)
How to simply put array from the std_msgs
into vector<double>
void setdot(const std_msgs::Int32MultiArray::ConstPtr& arr){
vector<double> tmp;
tmp.push_back(arr[0]);
tmp.push_back(arr[1]);
tmp.push_back(arr[2]);
}
error: invalid use of void expression if i compile it.