diff --git a/roboglue_ros_ws.workspace.user b/roboglue_ros_ws.workspace.user index 17d8091..fe506f5 100644 --- a/roboglue_ros_ws.workspace.user +++ b/roboglue_ros_ws.workspace.user @@ -1,6 +1,6 @@ - + EnvironmentId @@ -124,7 +124,7 @@ ROS_PACKAGE_PATH=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src:/opt/ros/kinetic/share ROS_ROOT=/opt/ros/kinetic/share/ros ROS_VERSION=1 - SHLVL=928 + SHLVL=940 TERM=xterm _=/usr/bin/env diff --git a/src/roboglue_ros/src/roboglue_recorder.cpp b/src/roboglue_ros/src/roboglue_recorder.cpp index ad62e70..4ba76e7 100644 --- a/src/roboglue_ros/src/roboglue_recorder.cpp +++ b/src/roboglue_ros/src/roboglue_recorder.cpp @@ -697,7 +697,7 @@ bool stopPlay(internalState* is, fileData* fd){ } void plotPoints (rvizData* rvdata, fileData* fd){ - if (fd->playVect != nullptr){ + if (fd->playVect != nullptr && fd->playVect->size()>0) { for(auto point : *fd->playVect){ rvdata->vtools->publishSphere(twist2Pose(point.point).pose, rvt::RED, rvt::MEDIUM); }