Recorder continua a crashare a caso quando si apre file con plot

This commit is contained in:
2019-11-15 17:01:45 +01:00
parent 73ab44a67e
commit dde6d1e083
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.9.2, 2019-11-15T16:41:03. -->
<!-- Written by QtCreator 4.9.2, 2019-11-15T17:00:10. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
@@ -124,7 +124,7 @@
<value type="QString">ROS_PACKAGE_PATH=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src:/opt/ros/kinetic/share</value>
<value type="QString">ROS_ROOT=/opt/ros/kinetic/share/ros</value>
<value type="QString">ROS_VERSION=1</value>
<value type="QString">SHLVL=928</value>
<value type="QString">SHLVL=940</value>
<value type="QString">TERM=xterm</value>
<value type="QString">_=/usr/bin/env</value>
</valuelist>

View File

@@ -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);
}