Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
karenbodie committed Aug 20, 2019
1 parent 40a2aab commit 93cdeeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions mav_trajectory_generation/src/segment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ bool Segment::getSegmentWithAppendedDimension(const Segment& segment_to_append,

// Scale segment polynomials to the longer segment time.
const double new_time = std::max(time_, segment_to_append.getTime());
if (time_ < new_time){
if (time_ < new_time && new_time > 0.0){
for (int d = 0; d < D_; d++) {
current_segment[d].scalePolynomialInTime(time_ / new_time);
}
} else if (segment_to_append.getTime() < new_time) {
} else if (segment_to_append.getTime() < new_time && new_time > 0.0) {
for (int d = 0; d < segment_to_append.D(); d++) {
segment_to_append_temp[d].scalePolynomialInTime(segment_to_append.getTime() / new_time);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ void drawMavSampledTrajectorybyTime(
const mav_msgs::EigenTrajectoryPoint::Vector& trajectory_points, double dt,
const std::string& frame_id, visualization_msgs::MarkerArray* marker_array);

// Draw an eigen trajectory with markers that are a minimum of dt apart in time.
void drawMavSampledTrajectorybyTime(
const mav_msgs::EigenTrajectoryPoint::Vector& flat_states, double dt,
const std::string& frame_id, visualization_msgs::MarkerArray* marker_array);

// Same as drawMavTrajectory, but also draws an additional marker at a set
// distance.
void drawMavTrajectoryWithMavMarker(
Expand Down

0 comments on commit 93cdeeb

Please sign in to comment.