Skip to content
This repository has been archived by the owner on Nov 13, 2017. It is now read-only.

Corrected check in getStateAtDurationFromStart #291

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion robot_trajectory/src/robot_trajectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ double robot_trajectory::RobotTrajectory::getWaypointDurationFromStart(std::size
bool robot_trajectory::RobotTrajectory::getStateAtDurationFromStart(const double request_duration, robot_state::RobotStatePtr& output_state) const
{
// If there are no waypoints we can't do anything
if (getWayPointCount())
if (getWayPointCount() < 1)
return false;

int before = 0, after = 0;
Expand Down