Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lbr_bringup/lbr_bringup/moveit.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def node_moveit_servo(
) -> Node:
return Node(
package="moveit_servo",
executable="servo_node_main",
executable="servo_node",
output="screen",
namespace=robot_name,
**kwargs,
Expand Down
22 changes: 11 additions & 11 deletions lbr_demos/lbr_moveit/lbr_moveit/forward_keyboard_node.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from dataclasses import dataclass
from dataclasses import dataclass, field

import numpy as np
import rclpy
Expand All @@ -25,8 +25,8 @@ class Rotation:
z: float = 0.0

joints: list
translation: Translation = Translation()
rotation: Rotation = Rotation()
translation: Translation = field(default_factory=Translation)
rotation: Rotation = field(default_factory=Rotation)

@dataclass
class KeyboardLayout:
Expand All @@ -47,9 +47,9 @@ class Z:
increase: str = "q"
decrease: str = "e"

x: X = X()
y: Y = Y()
z: Z = Z()
x: X = field(default_factory=X)
y: Y = field(default_factory=Y)
z: Z = field(default_factory=Z)

@dataclass
class Rotation:
Expand All @@ -68,13 +68,13 @@ class Z:
increase: str = "y"
decrease: str = "h"

x: X = X()
y: Y = Y()
z: Z = Z()
x: X = field(default_factory=X)
y: Y = field(default_factory=Y)
z: Z = field(default_factory=Z)

joints: list
translation: Translation = Translation()
rotation: Rotation = Rotation()
translation: Translation = field(default_factory=Translation)
rotation: Rotation = field(default_factory=Rotation)
escape: str = "Key.esc"
pause: str = "p"
reverse_joints: str = "r"
Expand Down
1 change: 1 addition & 0 deletions lbr_demos/lbr_moveit/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<test_depend>ament_flake8</test_depend>
<test_depend>ament_pep257</test_depend>
<test_depend>python3-pytest</test_depend>
<exec_depend>python3-pynput</exec_depend>

<export>
<build_type>ament_python</build_type>
Expand Down