robotics-toolbox-matlab icon indicating copy to clipboard operation
robotics-toolbox-matlab copied to clipboard

Error while using options in constructing objects

Open petercorke opened this issue 9 years ago • 0 comments

Reported by basvroeg, Jul 30, 2013 What steps will reproduce the problem?

  1. Create a RangeBearingSenors:
  2. sensor = RangeBearingSensor(veh, Map(10), V, 'range',[0.1 20],'angle',[-135 135]);
  3. Seems like superclass Sensor cannot handle options from class RangeBearingSensor

What is the expected output? What do you see instead? A range bearing sensor object with given range and angle. Instead, i get the following error:

Error using tb_optparse (line 211) unknown options: range

Error in Sensor (line 71) opt = tb_optparse(opt, varargin);

Error in RangeBearingSensor (line 90) s = s@Sensor(robot, map, varargin{:});

Error in Localization (line 40) sensor = RangeBearingSensor(veh, Map(10), V, 'range',[0.1 20],'angle',[-135 135]);

petercorke avatar Apr 06 '15 08:04 petercorke