resize function

Hi,

I added a resize() function to JntArrayVel, JntArrayAcc and Jacobian,
following the example in JntArray.
This allows you to make these objects a class variable, even though
you don't know the size at construction time.

Wim

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

AttachmentSize
resize.patch3.09 KB
Ruben Smits's picture

resize function

On Wednesday 28 January 2009 03:13:49 Wim Meeussen wrote:
> Hi,
>
> I added a resize() function to JntArrayVel, JntArrayAcc and Jacobian,
> following the example in JntArray.
> This allows you to make these objects a class variable, even though
> you don't know the size at construction time.

I committed the patch with a single adaptation, in the resize function of the
jacobian I defaulted the second argument to 1.

svn ci jntarrayvel.cpp jntarrayvel.hpp jacobian.cpp jacobian.hpp
jntarrayacc.cpp jntarrayacc.hpp -m"resize patch from wim with defaulted
nrblocks=1 in jacobian.resize"
Sending jacobian.cpp
Sending jacobian.hpp
Sending jntarrayacc.cpp
Sending jntarrayacc.hpp
Sending jntarrayvel.cpp
Sending jntarrayvel.hpp
Transmitting file data ......
Committed revision 29876.

> Wim
>
>
> Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm