Replies: 2 comments 6 replies
-
|
Just to mention that for the secondary discussion that showed up during your description, I have a strong opinion. So when we start that discussion, I’d like to be part of it. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @ffasilva,
I don't remember why the plot function transposes the vector
I don't remember discussing the intention to use @mmmarinho, feel free to jump in. Best wishes, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, @dqrobotics/developers,
I recently noticed
dq_kinematics_plot(robot,q)function on MATLAB is modifying the received objectrobot. Namely, it setsrobot.qand forces it to be a column vector.Although I understand the applications of this, I believe this is a counterintuitive and undesired behavior. A
plotfunction should be "read-only" and not modify any of the received inputs. If we intend to start usingrobot.qfor its methods (e.g., havingrobot.fkm()rather thanrobot.fkm(q),plot(robot)/robot.plot()rather thanplot(robot,q), etc...), which I never understood why we don't, we should have dedicated methodsrobot.set_joint_configuration(q)/robot.get_joint_configuration(). This opens a bit of a parallel discussion, but regardless I do not thinkdq_kinematics_plot(robot,q)function should be modifying therobotobject.However, since this is not a proper issue, I would like to hear your opinions on that.
TL;DR:
plot()should never modify the received objects.Kind regards,
Frederico
Beta Was this translation helpful? Give feedback.
All reactions