Skip to content

Commit

Permalink
fix: replace mutable default with factory (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanElsner authored Jun 21, 2024
1 parent 48f5c82 commit 1d51de4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dm_robotics/panda/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ class RobotParams:
robot_ip: Optional[str] = None
joint_stiffness: Sequence[float] = (600, 600, 600, 600, 250, 150, 50)
joint_damping: Sequence[float] = (50, 50, 50, 20, 20, 20, 10)
collision_behavior: CollisionBehavior = CollisionBehavior()
collision_behavior: CollisionBehavior = dataclasses.field(
default_factory=lambda: CollisionBehavior())
enforce_realtime: bool = False

0 comments on commit 1d51de4

Please sign in to comment.