error: expected class-name before ‘{’ token
Hi there !
I try to compile a package that I found in the internet but I still get this error:
In file included from /home/ros/rosbuildstaubli/staubli3/src/controller.cpp:14:0:
/home/ros/rosbuildstaubli/staubli3/include/command.h: At global scope:
/home/ros/rosbuildstaubli/staubli3/include/command.h:24:1: error: expected class-name before ‘{’ token
/home/ros/rosbuildstaubli/staubli3/include/command.h:205:1: error: expected class-name before ‘{’ token
/home/ros/rosbuildstaubli/staubli3/include/command.h: In constructor ‘staubli::command::Request::Request()’:
/home/ros/rosbuildstaubli/staubli3/include/command.h:57:27: error: expected class-name before ‘(’ token
/home/ros/rosbuildstaubli/staubli3/include/command.h:57:27: error: expected ‘{’ before ‘(’ token
The class Request heritate from ros::Message and this is what cause the errors, each time I use:
class Request : public ros::Message
This is the headers that I have in each those two files
#include <string>
#include <cstring>
#include <vector>
#include <map>
#include "ros/message.h"
#include "ros/time.h"
#include "TX60L.h"
#include <iostream>
#include <algorithm>
#include <ros/ros.h>
#include <std_msgs/String.h>
#include <sstream>
#include "command.h" //command service of staubli
#include "controller.h"
I'm using ros-Hydro ubuntu 12.04