Error: expected primary-expression

asked 2019-08-06 14:06:15 -0600

mikepark93 gravatar image

updated 2019-08-06 14:19:20 -0600

jayess gravatar image

I am using the executors in rclcpp, but I keep on getting the following error:

 error: expected primary-expression before ‘exec’ rclcpp::executors::SingleThreadedExecutor exec;

This is exactly the same as in the example for the minimal_composition, so I 'm not sure why it is giving me the error. Does it have to do with these warning?

[0.247s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/overlord/orion_ros2/install/orion_sensor' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.247s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/overlord/orion_ros2/install/orion_sensor' in the environment variable CMAKE_PREFIX_PATH doesn't exist
edit retag flag offensive close merge delete



Mind posting a minimal reproducible example? I don't think there is enough information here to tell what's happening.

sloretz gravatar image sloretz  ( 2019-08-06 16:26:36 -0600 )edit