Skip to content

Commit d7c9361

Browse files
Fix servo_cpp_interface_demo (#689)
1 parent 9f188c3 commit d7c9361

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

doc/examples/realtime_servo/launch/servo_cpp_interface_demo.launch.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@ def generate_launch_description():
1414
.to_moveit_configs()
1515
)
1616
# Get parameters for the Servo node
17-
servo_params = (
18-
ParameterBuilder("moveit_servo")
19-
.yaml(
20-
parameter_namespace="moveit_servo",
21-
file_path="config/panda_simulated_config.yaml",
22-
)
17+
servo_params = {
18+
"moveit_servo": ParameterBuilder("moveit_servo")
19+
.yaml("config/panda_simulated_config.yaml")
2320
.to_dict()
24-
)
21+
}
2522

2623
# A node to publish world -> panda_link0 transform
2724
static_tf = Node(

doc/examples/realtime_servo/src/servo_cpp_interface_demo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ int main(int argc, char** argv)
166166

167167
// Initializing Servo
168168
// ^^^^^^^^^^^^^^^^^^
169-
auto servo_param_listener = std::make_unique<const servo::ParamListener>(node_);
169+
auto servo_param_listener = std::make_unique<const servo::ParamListener>(node_, "moveit_servo");
170170

171171
// Initialize the Servo C++ interface by passing a pointer to the node, the parameters, and the PSM
172172
moveit_servo::Servo servo(node_, planning_scene_monitor, std::move(servo_param_listener));

0 commit comments

Comments
 (0)