Skip to content

Commit

Permalink
Merge pull request #66 from s4hri/fix_position_controller
Browse files Browse the repository at this point in the history
Fixed joints_list empty
  • Loading branch information
ddetommaso authored Aug 25, 2024
2 parents c957eca + 23a4a4e commit 244c7ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyicub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
__authors__ = 'Davide De Tommaso, Adam Lukomski, Nicola Russi'
__emails__ = '[email protected], [email protected], [email protected]'
__license__ = 'BSD-2'
__version__ = '8.1.0'
__version__ = '8.1.1'
__description__ = 'Developing iCub applications using Python'
6 changes: 3 additions & 3 deletions pyicub/controllers/position.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ def move(self, pose: JointPose, req_time: float=0.0, timeout: float=DEFAULT_TIME
t0 = time.perf_counter()
target_joints = pose.target_joints
joints_list = pose.joints_list
self.setPositionControlMode(joints_list=joints_list)

if joints_list is None:
joints_list = range(0, self.__joints__)


self.setPositionControlMode(joints_list=joints_list)

if not joints_speed:
for j in joints_list:
ref_speed = 10.0
Expand Down

0 comments on commit 244c7ea

Please sign in to comment.