Skip to content

Commit db3467f

Browse files
committed
Show service introspection on clients
1 parent e7c18ef commit db3467f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

rclrs/minimal_client_service/src/minimal_client.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ fn main() -> Result<(), Error> {
99

1010
let client = node.create_client::<AddTwoInts>("add_two_ints")?;
1111

12+
// Enable introspection for this client
13+
// This is optional and only necessary on either the client or the service side
14+
// if you want to be able to introspect the service calls e.g. with ros2 service echo
15+
client.configure_introspection(ServiceIntrospectionState::Contents)?;
16+
1217
let promise = executor.commands().run(async move {
1318
println!("Waiting for service...");
1419
client.notify_on_service_ready().await.unwrap();

0 commit comments

Comments
 (0)