Skip to content

Commit

Permalink
Address PR comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhou committed Aug 3, 2018
1 parent 2b43da7 commit 0dbbe07
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/aikido/control/InstantaneousTrajectoryExecutor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ class InstantaneousTrajectoryExecutor : public TrajectoryExecutor
std::future<void> execute(
const trajectory::ConstTrajectoryPtr& traj) override;

// Do nothing.
/// Does nothing.
void step(
const std::chrono::system_clock::time_point& /*timepoint*/) override;

// Do nothing.
/// Does nothing.
void cancel() override;

private:
Expand Down
1 change: 0 additions & 1 deletion include/aikido/control/TrajectoryExecutor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <chrono>
#include <future>
#include <set>
#include <dart/common/Console.hpp>
#include "aikido/common/pointers.hpp"
#include "aikido/trajectory/Trajectory.hpp"

Expand Down
2 changes: 1 addition & 1 deletion include/aikido/control/ros/RosTrajectoryExecutor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class RosTrajectoryExecutor : public aikido::control::TrajectoryExecutor
/// Regularly checks for the completion of a sent trajectory.
void step(const std::chrono::system_clock::time_point& timepoint) override;

// \copydoc TrajectoryExecutor::cancel()
/// \copydoc TrajectoryExecutor::cancel()
void cancel() override;

private:
Expand Down
1 change: 1 addition & 0 deletions src/control/KinematicSimulationTrajectoryExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "aikido/control/KinematicSimulationTrajectoryExecutor.hpp"
#include <dart/common/Console.hpp>
#include <dart/common/StlHelpers.hpp>
#include "aikido/control/TrajectoryRunningException.hpp"

Expand Down
5 changes: 5 additions & 0 deletions src/control/ros/RosTrajectoryExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "aikido/control/ros/RosTrajectoryExecutionException.hpp"
#include "aikido/control/ros/util.hpp"
#include "aikido/statespace/dart/MetaSkeletonStateSpace.hpp"
#include <dart/common/Console.hpp>

namespace aikido {
namespace control {
Expand Down Expand Up @@ -238,10 +239,14 @@ void RosTrajectoryExecutor::cancel()
DART_UNUSED(lock); // Suppress unused variable warning.

if (mInProgress)
{
mGoalHandle.cancel();
}
else
{
dtwarn << "[RosTrajectoryExecutor::cancel] Attempting to "
<< "cancel trajectory, but no trajectory in progress.\n";
}
}

} // namespace ros
Expand Down

0 comments on commit 0dbbe07

Please sign in to comment.