PythonRobotics icon indicating copy to clipboard operation
PythonRobotics copied to clipboard

Error when running ArmNavigation/rrt_star_seven_joint_arm_control/rrt_star_seven_joint_arm_control.py

Open timmarkhuff opened this issue 1 month ago • 0 comments

When I run ArmNavigation/rrt_star_seven_joint_arm_control/rrt_star_seven_joint_arm_control.py, I get an error:

  File "/Users/tim/PythonRobotics/ArmNavigation/rrt_star_seven_joint_arm_control/rrt_star_seven_joint_arm_control.py", line 405, in <module>
    main()
  File "/Users/tim/PythonRobotics/ArmNavigation/rrt_star_seven_joint_arm_control/rrt_star_seven_joint_arm_control.py", line 384, in main
    ax = rrt_star.draw_graph()
         ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/tim/PythonRobotics/ArmNavigation/rrt_star_seven_joint_arm_control/rrt_star_seven_joint_arm_control.py", line 268, in draw_graph
    self.ax.axis([-1, 1, -1, 1])
  File "/Users/tim/PythonRobotics/my_env/lib/python3.11/site-packages/matplotlib/axes/_base.py", line 2114, in axis
    raise TypeError(
TypeError: The first argument to axis() must be an iterable of the form [xmin, xmax, ymin, ymax, zmin, zmax]

Seems to be a simple bug with one of the matplotlib functions

I have proposed a fix in: https://github.com/AtsushiSakai/PythonRobotics/pull/1022

timmarkhuff avatar May 24 '24 21:05 timmarkhuff