/bin/sh: 1: Syntax error: "(" unexpected
There must be something misconfigured with this system because the same code builds on other systems no problem. Here's the full output. Using Ubuntu 14.04 and the latest ros-indigo packages from the ppa. This is a fresh install on this system. Any ideas what it might be?
[ 17%] Built target bond_generate_messages_lisp
Scanning dependencies of target bond_generate_messages_py
[ 17%] Built target bond_generate_messages_py
Scanning dependencies of target diagnostic_msgs_generate_messages_cpp
[ 17%] Built target diagnostic_msgs_generate_messages_cpp
[ 17%] Scanning dependencies of target diagnostic_msgs_generate_messages_py
Built target mbot_pure_pursuit
[ 17%] Built target diagnostic_msgs_generate_messages_py
Scanning dependencies of target velodyne_pointcloud_gencfg
Scanning dependencies of target velodyne_launch_generate_messages_py
[ 19%] Generating dynamic reconfigure files from cfg/VelodyneConfig.cfg: /home/marble/mBot/ros/devel/include/velodyne_pointcloud/VelodyneConfigConfig.h /home/marble/mBot/ros/devel/lib/python2.7/dist-packages/velodyne_pointcloud/cfg/VelodyneConfigConfig.py
[ 19%] /bin/sh: 1: Syntax error: "(" unexpected
make[2]: *** [/home/marble/mBot/ros/devel/include/velodyne_pointcloud/VelodyneConfigConfig.h] Error 2
make[1]: *** [velodyne_driver_16/velodyne_pointcloud/CMakeFiles/velodyne_pointcloud_gencfg.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Built target velodyne_launch_generate_messages_py
Here's the cfg file in question. It starts with a shebang as expected.
#!/usr/bin/env python
PACKAGE = "velodyne_pointcloud"
from math import pi
from dynamic_reconfigure.parameter_generator_catkin import *
gen = ParameterGenerator()
gen.add("min_range", double_t, 0, "min range to publish", 0.9, 0.9, 10.0)
gen.add("max_range", double_t, 0, "max range to publish", 130, 0.9, 200)
gen.add("view_direction", double_t, 0, "angle defining the center of view",
0.0, -pi, pi)
gen.add("view_width", double_t, 0, "angle defining the view width",
2*pi, 0.0, 2*pi)
exit(gen.generate(PACKAGE, "velodyne_pointcloud", "VelodyneConfig"))
Just making sure: there is no PPA for ROS. Do you mean
packages.ros.org
?Also: how did you download the sources for
velodyne
? DynReCfg files should be executable, so if you didn't clone the repository correctly, you can run into problems.You said you installed from "the ppa", but your output looks like you are building it from source. Are you?
Yeah, sorry for the confusion. By "from the PPA" I mean I added packages.ros.org as a repository and most of ROS is installed that way. The velodyne package is out of date on packages.ros.org so I cloned the latest from github into a catkin workspace, which I'm trying to build.
Missing shebang causes this same error message.