Skip to content

How can we alternate between DQ_SerialManipulatorDH and DQ_SerialManipulatorMDH? #13

Answered by bvadorno
marcos-pereira asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @marcos-pereira,

It suffices to use DQ_SerialManipulator, the superclass, as the argument for your methods. When passing an object of DQ_SerialManipulatorDH or DQ_SerialManipulatorMDH, the compiler (or interpreter, in the case of MATLAB) is clever enough to recognize that the object belongs to one subclass or another and use the appropriate method implementation.

Kind regards,
Bruno

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@marcos-pereira
Comment options

@mmmarinho
Comment options

@marcos-pereira
Comment options

@mmmarinho
Comment options

@marcos-pereira
Comment options

Answer selected by marcos-pereira
Comment options

You must be logged in to vote
1 reply
@bvadorno
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants