Skip to content

Commit

Permalink
proper main backport
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Doisy committed Apr 7, 2023
1 parent 9b90ae7 commit ede067c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nav2_velocity_smoother/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>nav2_velocity_smoother</name>
<version>1.1.5</version>
<version>1.0.0</version>
<description>Nav2's Output velocity smoother</description>
<maintainer email="stevenmacenski@gmail.com">Steve Macenski</maintainer>
<license>Apache-2.0</license>
Expand Down
5 changes: 5 additions & 0 deletions nav2_velocity_smoother/src/velocity_smoother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ double VelocitySmoother::applyConstraints(

void VelocitySmoother::smootherTimer()
{
// Wait until the first command is received
if (!command_) {
return;
}

auto cmd_vel = std::make_unique<geometry_msgs::msg::Twist>();

// Check for velocity timeout. If nothing received, publish zeros to apply deceleration
Expand Down

0 comments on commit ede067c

Please sign in to comment.