Skip to content

None value with variable "qd" and "qdd" in function "mstraj" return #497

@yang-si-hang

Description

@yang-si-hang

Describe the bug
I applied the function "mstraj" in my code,

Version information
Installation from Conda channel "conda-forge"

To Reproduce
The python code is below:

q_start = np.array([0, 0, 0, 0, 0, 0])
q_via1 = np.array([0.5, -0.5, 0.2, 0, 0, 0])
q_via2 = np.array([1.0, 0.5, 0.9, 0.5, -0.2, 0])
q_end = np.array([1.5, 0, 0, 0, 0, 0])
waypoints = np.array([q_start, q_via1, q_via2, q_end])

dt = 0.02
t_acc = 0.5
q_vel = 2

traj = rtb.mstraj(waypoints, dt=dt, tacc=t_acc, qdmax=q_vel)

# None in variable "qd" and "qdd"
print(traj.qd)
print(traj.qdd)

The output of the code:

None
None

Expected behavior
I expected the meaningful value of varibale "qd" and "qdd" but returns "None".

Screenshots

Environment (please complete the following information):

  • Linux (Ubuntu 22.04).
  • python==3.11.11

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy