Skip to content

[BUG] MATLAB dq_kinematics_plot modifying the object #107

Description

@ffasilva

Code of Conduct

By submitting this report you automatically agree that you've read and accepted the following conditions.

  • Support for DQ Robotics is given voluntarily and it's not the developers' role to educate and/or convince anyone of their vision.
  • Any possible response and its timeliness will be based on the relevance, accuracy, and politeness of a request and the following discussion.
  • If a DQ Robotics member replies, the user must let them know if their response solves their issue or not.
  • Any suggestion/advice/request made by anyone, as well intentioned as they might be, might not be incorporated into DQ Robotics.

Discussed in #103

Bug description

In brief, dq_kinematics_plot(robot,q) function on MATLAB is modifying the received object robot. Namely, it sets robot.q and forces it to be a row vector.

To Reproduce

Run the following:

Code

ax18 = Ax18ManipulatorRobot.kinematics();
ax18.q
q = [0 0 0 0 0]';
plot(ax18, q);
ax18.q

Output

ans =
[]

ans =
0 0 0 0 0 

Expected behavior

  • The plot function should not have altered robot.q.

Expected output

ans =
[]

ans =
[]

Environment:

  • OS: Ubuntu 20.04
  • dqrobotics version 20.04.0.1
  • MATLAB version 2023b

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions