From bbb04b7d1868f188a4bd3be99e554c799c73cbc1 Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Thu, 14 Sep 2023 22:38:41 +0000 Subject: [PATCH] update triggered publisher tutorial 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..fc25df8eba 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} - - - - +``` +gz topic -t "/reset_robot" -m gz.msgs.Empty -p " " ```