Error in starting ArduCopter sim_vehicle.py file

tanishq@tanishq-ubuntu:~/ROS/ardupilot/ArduCopter$ sim_vehicle.py -w
SIM_VEHICLE: Start
SIM_VEHICLE: Killing tasks
SIM_VEHICLE: Starting up at -35.363261,149.165230,584,353 (CMAC)
SIM_VEHICLE: WAF build
SIM_VEHICLE: Configure waf
SIM_VEHICLE: “/home/tanishq/ROS/ardupilot/modules/waf/waf-light” “configure” “–board” “sitl”
Traceback (most recent call last):
File “/home/tanishq/ROS/ardupilot/modules/waf/waflib/Node.py”, line 590, in ant_iter
raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/home/tanishq/ROS/ardupilot/modules/waf/waflib/Scripting.py”, line 165, in waf_entry_point
run_commands()
File “/home/tanishq/ROS/ardupilot/modules/waf/waflib/Scripting.py”, line 262, in run_commands
parse_options()
File “/home/tanishq/ROS/ardupilot/modules/waf/waflib/Scripting.py”, line 214, in parse_options
Context.create_context(‘options’).execute()
File “/home/tanishq/ROS/ardupilot/modules/waf/waflib/Options.py”, line 271, in execute
super(OptionsContext, self).execute()
File “/home/tanishq/ROS/ardupilot/modules/waf/waflib/Context.py”, line 205, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File “/home/tanishq/ROS/ardupilot/modules/waf/waflib/Context.py”, line 287, in recurse
user_function(self)
File “/home/tanishq/ROS/ardupilot/wscript”, line 52, in options
opt.load(‘compiler_cxx compiler_c waf_unit_test python’)
File “/home/tanishq/ROS/ardupilot/modules/waf/waflib/Context.py”, line 197, in load
fun(self)
File “/home/tanishq/ROS/ardupilot/modules/waf/waflib/Tools/compiler_cxx.py”, line 103, in options
opt.load_special_tools(‘cxx_*.py’)
File “/home/tanishq/ROS/ardupilot/modules/waf/waflib/Context.py”, line 609, in load_special_tools
lst = self.root.find_node(waf_dir).find_node(‘waflib/extras’).ant_glob(var)
File “/home/tanishq/ROS/ardupilot/modules/waf/waflib/Node.py”, line 683, in ant_glob
ret = [x for x in self.ant_iter(accept=accept, pats=[to_pat(incl), to_pat(excl)], maxdepth=kw.get(‘maxdepth’, 25), dir=dir, src=src, remove=kw.get(‘remove’, True))]
File “/home/tanishq/ROS/ardupilot/modules/waf/waflib/Node.py”, line 683, in
ret = [x for x in self.ant_iter(accept=accept, pats=[to_pat(incl), to_pat(excl)], maxdepth=kw.get(‘maxdepth’, 25), dir=dir, src=src, remove=kw.get(‘remove’, True))]
RuntimeError: generator raised StopIteration
SIM_VEHICLE: (Configure waf) exited with code 512
SIM_VEHICLE: Killing tasks

1 Like