ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

"error: expected ‘)’ before ‘Project’" in /opt/ros/groovy/include/ros/publisher.h during catkin_make

asked 2014-12-23 18:20:05 -0500

Alvar gravatar image

updated 2014-12-24 02:17:03 -0500

gvdhoorn gravatar image

I go into those file and see neither syntax error or the string 'Project'

Do anyone knows what happen?

https://github.com/ros/ros_comm/blob/...

In file included from /opt/ros/groovy/include/ros/node_handle.h:32:0,
                 from /opt/ros/groovy/include/ros/ros.h:45,
                 from /home/ardrone/catkin_ws/src/droneproject/src/Main.cpp:4:
/opt/ros/groovy/include/ros/publisher.h: In member function ‘void ros::Publisher::publish(const boost::shared_ptr<T>&) const’:
/opt/ros/groovy/include/ros/publisher.h:69:11: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:69:11: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:69:11: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:75:11: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:75:11: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:75:11: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:79:7: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:79:7: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:79:7: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h: In member function ‘void ros::Publisher::publish(const M&) const’:
/opt/ros/groovy/include/ros/publisher.h:102:11: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:102:11: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:102:11: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:108:11: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:108:11: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:108:11: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:112:7: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:112:7: error: expected ‘)’ before ‘Project’
/opt/ros/groovy/include/ros/publisher.h:112:7: error: expected ‘)’ before ‘Project’
In file included from /opt/ros/groovy/include/ros/parameter_adapter.h:32:0,
                 from /opt/ros/groovy/include/ros/subscription_callback_helper.h:35,
                 from /opt/ros/groovy/include/ros/subscriber.h:33,
                 from /opt/ros/groovy/include/ros/node_handle.h:33,
                 from /opt/ros/groovy/include/ros/ros.h:45,
                 from /home/ardrone/catkin_ws/src/droneproject/src/Main.cpp:4:
/opt/ros/groovy/include/ros/message_event.h: In member function ‘typename boost::disable_if<boost::is_void<M2>, boost::shared_ptr<T> >::type ros::MessageEvent<M>::copyMessageIfNecessary() const’:
/opt/ros/groovy/include/ros/message_event.h:228:5: error: expected ‘)’ before ‘Project’
In file included from /opt/ros/groovy/include/ros/subscriber.h:33:0,
                 from /opt/ros/groovy/include/ros/node_handle.h:33,
                 from /opt/ros/groovy/include/ros/ros.h:45,
                 from /home/ardrone/catkin_ws/src/droneproject/src/Main.cpp:4:
/opt/ros/groovy/include/ros/subscription_callback_helper.h: In member function ‘virtual ros::VoidConstPtr ros::SubscriptionCallbackHelperT<P, Enabled>::deserialize(const ros::SubscriptionCallbackHelperDeserializeParams&)’:
/opt/ros/groovy/include/ros/subscription_callback_helper.h:160:7: error: expected ‘)’ before ‘Project’
In ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2014-12-24 02:18:09 -0500

gvdhoorn gravatar image

updated 2014-12-24 02:18:42 -0500

This is most likely a syntax error in your own code. It would help if you'd add the relevant source code to your OP (Main.cpp?).

edit flag offensive delete link more

Comments

I found out that it is the ROS_INFO, ROS_ASSERT macro causing the error though the reason is ye unknown

Alvar gravatar image Alvar  ( 2014-12-24 04:34:28 -0500 )edit

Again, this is most likely a syntax error in your own code. We can only help you if you show us what you are doing exactly. The ROS_INFO and ROS_ASSERT macros have been used in hundreds, if not thousands of packages already. I'd be very surprised if they are the cause here.

gvdhoorn gravatar image gvdhoorn  ( 2014-12-24 06:34:12 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-12-23 18:20:05 -0500

Seen: 219 times

Last updated: Dec 24 '14