[Rock-dev] [rock] #401: Hint for user to run 'roby init' when trying to add a robot to a bundle

rock noreply at opendfki.de
Mon Dec 16 15:41:53 CET 2013


#401: Hint for user to run 'roby init' when trying to add a robot to a bundle
-------------------------+-----------------------------------
 Reporter:  mawi05       |      Owner:  rock-dev-mailing-list
     Type:  enhancement  |     Status:  new
 Priority:  trivial      |  Milestone:
Component:  base         |   Keywords:
-------------------------+-----------------------------------
 Wanted to add a robot to a bundle with 'syskit add-robot some_robot'. This
 resulted in the following error message.

 /media/data/Projects/BesMan/Software/RockDev/tools/roby/lib/roby/app.rb:250:in
 `require_app_dir': this needs to be started from within a Roby application
 (ArgumentError)
         from
 /media/data/Projects/BesMan/Software/RockDev/tools/roby/lib/roby/app/scripts
 /add-robot.rb:3:in `<top (required)>'
         from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
         from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
         from
 /media/data/Projects/BesMan/Software/RockDev/tools/syskit/bin/syskit:28:in
 `rescue in <main>'
         from
 /media/data/Projects/BesMan/Software/RockDev/tools/syskit/bin/syskit:24:in
 `<main>'

 The bundle was created beforehand with rock-create-bundle. What was
 missing was that 'roby init' (or 'syskit init') was called.

 Maybe the error message could be changed to something like:

 "Your current directory does not seem to be a Roby application directory.
 Did you forget to run 'roby init'?"

-- 
Ticket URL: <http://rock.opendfki.de/ticket/401>
rock <http://rock.opendfki.de>
rock: the robot construction kit


More information about the Rock-dev mailing list