osrf_gear not found by rosrun when using devel space

Issue #14 resolved
William Woodall created an issue

Comments (3)

  1. Brian Gerkey

    Related error when trying to run from the devel space:

    $ rosrun osrf_gear gear.py -f src/ariac/osrf_gear/config/qual1a.yaml src/ariac/ariac_example/config/sample_gear_conf.yaml
    Traceback (most recent call last):
      File "/home/gerkey/ariac_ws/src/ariac/osrf_gear/script/gear.py", line 508, in <module>
        sys.exit(main())
      File "/home/gerkey/ariac_ws/src/ariac/osrf_gear/script/gear.py", line 468, in main
        files = generate_files(template_data)
      File "/home/gerkey/ariac_ws/src/ariac/osrf_gear/script/gear.py", line 447, in generate_files
        with open(template_file, 'r') as f:
    IOError: [Errno 2] No such file or directory: '/home/gerkey/ariac_ws/src/ariac/osrf_gear/script/../../share/osrf_gear/worlds/gear.world.template'
    
  2. Deanna Hood

    Resolves #14 : Fixing devel space builds

    Prior to this commit, paths were mostly hard-coded to install space. This eliminates that requirement by using the rospkg python pkg and rospack find shell command to automatically find the correct paths whether the users is building a devel or install space build.

    Additionally, the setup.sh script needed a chmod to become executable (and therefore detectable by rosrun).

    → <<cset 73b569e33e0f>>

  3. Log in to comment