From c8d16bfe78dcc0983cdf9ca3e47e671c81f91e77 Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Thu, 14 Sep 2023 18:34:46 -0700 Subject: [PATCH] Update triggered publisher tutorial (#2150) --------- Signed-off-by: Ian Chen --- tutorials/triggered_publisher.md | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/tutorials/triggered_publisher.md b/tutorials/triggered_publisher.md index 56768e470b..5d497dda86 100644 --- a/tutorials/triggered_publisher.md +++ b/tutorials/triggered_publisher.md @@ -267,8 +267,11 @@ and publish the start message gz topic -t "/start" -m gz.msgs.Empty -p " " ``` +The vehicle will start moving forward and two boxes will eventually fall to +the ground. + Once both boxes have fallen, we can publish a message to invoke a service call -to reset the robot position as well as set the speed to 0. As shown below, the +to reset the vehicle position as well as set the speed to 0. As shown below, the `` sets the linear x speed to 0, and the `` tag contains metadata to invoke a service call to `/world/triggered_publisher/set_pose`. The `reqMsg` is expressed in the human-readable form of Google Protobuf meesages. @@ -291,26 +294,9 @@ Multiple `` tags can be used as well as with the `` tag. ``` -Once both boxes have fallen, we can publish a message to invoke a service call -to reset the robot position as well as set the speed to 0. As shown below, the -`` sets the linear x speed to 0, and the `` tag contains -metadata to invoke a service call to `/world/triggered_publisher/set_pose`. The -`reqMsg` is expressed in the human-readable form of Google Protobuf meesages. -Multiple `` tags can be used as well as with the `` tag. +Publish an empty message to the `/reset_robot` topic to reset the vehicle +back to its original position. -```xml - - - - linear: {x: 0} - - - - +```bash +gz topic -t "/reset_robot" -m gz.msgs.Empty -p " " ```