Skip to content

Commit 177f046

Browse files
authored
fix example run issue and clean up for arm navigation codes. (AtsushiSakai#528)
* clean up arm navigation codes. * add project toml * add pylintrc * add pylintrc * add pylintrc
1 parent 6f06b53 commit 177f046

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ArmNavigation/n_joint_arm_3d/NLinkArm3d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ def forward_kinematics(self, plot=False):
6363

6464
if plot:
6565
self.fig = plt.figure()
66-
self.ax = Axes3D(self.fig)
66+
self.ax = Axes3D(self.fig, auto_add_to_figure=False)
67+
self.fig.add_axes(self.ax)
6768

6869
x_list = []
6970
y_list = []

ArmNavigation/n_joint_arm_to_point_control/n_joint_arm_to_point_control.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
Author: Daniel Ingram (daniel-s-ingram)
55
Atsushi Sakai (@Atsushi_twi)
66
"""
7+
78
import numpy as np
9+
import sys
10+
from pathlib import Path
11+
sys.path.append(str(Path(__file__).parent.parent.parent))
812

913
from ArmNavigation.n_joint_arm_to_point_control.NLinkArm import NLinkArm
1014

0 commit comments

Comments
 (0)