Skip to content

Additional line get drawn when visualizing trough pyplot #467

Open
@Borzoneg

Description

@Borzoneg

When visualizing the robot in the pyplot environment a line get drawn from base to the tcp of the robot. I have tried both from urdf that I have and from the tutorial (https://github.com/petercorke/robotics-toolbox-python)

To Reproduce
Steps to reproduce the behavior:

import roboticstoolbox as rtb
from spatialmath import SE3

robot = ERobot.URDF(os.environ['FLUENTLY_WS_PATH'] + "/urdf/crx20ia_l.urdf", gripper="tcp")
# or 
robot = rtb.models.Panda() 

Tep = SE3.Trans(0.6, -0.3, 0.1) * SE3.OA([0, 1, 0], [0, 0, -1])
sol = robot.ik_LM(Tep)         # solve IK
q_pickup = sol[0]
qt = rtb.jtraj(robot.qr, q_pickup, 50)
robot.plot(qt.q, backend='pyplot', movie='panda1.gif')

Screenshot from 2024-12-03 16-23-52

Expected behavior
A visualization of the robot appears on screen

  • roboticstoolbox-python==1.1.1
  • matplotlib==3.5.1
  • spatialgeometry==1.1.0
  • spatialmath-python==1.1.11
  • OS: Ubuntu 22.04.5
  • Python version: 3.10.12

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