octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #50466] makehgtform function missing


From: Bob Stephens
Subject: [Octave-bug-tracker] [bug #50466] makehgtform function missing
Date: Sat, 11 Mar 2017 00:13:46 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0

Follow-up Comment #6, bug #50466 (project octave):

The sample Code I posted earlier to test hgtransform appears to work well with
the hgtransform.m file Rik so kindly created.

I have found that when trying to use the Robotics Toolbox and the trplot2
function it's failing. I've been trying to work my way through what and where
(interesting learning).
I've not been able to find a neat way of providing a simple way to reproduce
it without the Toolbox yet.

The errors appear to be around items returned in the "for hk = hlist.'" in
xform_data failing when later statements try to extract the xdata. I am
wondering if it's because trplot2 appends text data (but don't know enough yet
to speak with confidence). 

>From line 157 of trplot2.m
    % label the axes
    if isempty(opt.frame)
        fmt = '%c';
    else
        fmt = sprintf('%%c_{%s}', opt.frame);
    end
    
    % add the labels to each axis
    h = text(x1(1), x1(2), sprintf(fmt, 'X'), 'Parent', hg);
    if ~isempty(opt.text_opts)
        set(h, opt.text_opts{:});
    end
    if opt.arrow
        set(h, 'Parent', hg);
    end

-- More for Y axis and the frame follow in the code.

As I stated earlier I've not yet worked out how to post a simple test for this
without the toolbox. I'll post the output (I think I'm back to original code
after lots of try blocks to see if I can isolate the issue)
    % label the axes
    if isempty(opt.frame)
        fmt = '%c';
    else
        fmt = sprintf('%%c_{%s}', opt.frame);
    end
    
    % add the labels to each axis
    h = text(x1(1), x1(2), sprintf(fmt, 'X'), 'Parent', hg);
    if ~isempty(opt.text_opts)
        set(h, opt.text_opts{:});
    end
    if opt.arrow
        set(h, 'Parent', hg);
    end


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50466>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]