bool
FootstepNavigation::replan()
{
  if (!updateStart())
  {
    ROS_ERROR("Start pose not accessible!");
    return false;
  }

  bool path_existed = ivPlanner.pathExists();

  // calculate path by replanning (if no planning information exists
  // this call is equal to ivPlanner.plan())
  if (ivPlanner.replan())
  {
    startExecution();
    return true;
  }
  else if (path_existed)
  {
    ROS_INFO("Replanning unsuccessful. Reseting previous planning "
             "information.");
    if (ivPlanner.plan())
    {
      startExecution();
      return true;
    }
  }
  // path planning unsuccessful
  ivExecutingFootsteps = false;
  return false;
}
CountingSourceLinesWidget::CountingSourceLinesWidget(const QString &folderName, TextEditor *given_editor, QWidget *parent) : QWidget(parent)
{
    QSplitter *new_splitter = new QSplitter;
    new_splitter->setChildrenCollapsible(false);
    new_splitter->setObjectName("Main Second Splitter");

    QVBoxLayout *container_layout = new QVBoxLayout;
    container_layout->addWidget(new_splitter);
    container_layout->setContentsMargins(0, 0, 0, 0);
    container_layout->setSpacing(0);
    setLayout(container_layout);

    output = given_editor;
    new_splitter->addWidget(output);

    output->createModeLine();
    output->setObjectName(tr("*Counter*"));
    output->set_current_file_name(tr("*Counter*"));
    output->textEdit->setFocus();

    myProcess = new QProcess(this);
    QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
    myProcess->setProcessEnvironment(env);
    myProcess->setWorkingDirectory("/home/zak/Qt/Redactor/ConsoleTools");

    name_of_the_source = folderName;

    connect(myProcess, SIGNAL(finished(int,QProcess::ExitStatus)), this, SLOT(processFinished(int,QProcess::ExitStatus)));
    connect(myProcess, SIGNAL(error(QProcess::ProcessError)), this, SLOT(processError(QProcess::ProcessError)));
    connect(myProcess, SIGNAL(readyReadStandardOutput()), this, SLOT(updateOutput()));

    startExecution();
}
Ejemplo n.º 3
0
    void ActionInstance::doStartExecution()
    {
        ++d->executionCounter;

        d->executionTimer.start();

        startExecution();
    }
Ejemplo n.º 4
0
void MaemoDebugSupport::handleAdapterSetupRequested()
{
    ASSERT_STATE(Inactive);

    setState(StartingRunner);
    showMessage(tr("Preparing remote side ...\n"), AppStuff);
    disconnect(m_runner, 0, this, 0);
    connect(m_runner, SIGNAL(error(QString)), this,
        SLOT(handleSshError(QString)));
    connect(m_runner, SIGNAL(readyForExecution()), this,
        SLOT(startExecution()));
    connect(m_runner, SIGNAL(reportProgress(QString)), this,
        SLOT(handleProgressReport(QString)));
    m_runner->start();
}
bool
FootstepNavigation::plan()
{
  if (!updateStart())
  {
    ROS_ERROR("Start pose not accessible!");
    return false;
  }

  if (ivPlanner.plan())
  {
    startExecution();
    return true;
  }
  // path planning unsuccessful
  return false;
}
Ejemplo n.º 6
0
int main(int argc, char const *argv[])
{
    unsigned int i;
    if(argc < 2) {
        std::cout << "Usage: " << argv[0] << "<numberElements> <Optional_numberOverlapPerGPU>" << std::endl;
        return -1;
    } else {
        // Set the values in regards to the supplied arguments
        if(argc >= 2) {
            numberElems = atoi(argv[1]);
            if(argc == 3) {
                numOverlap = atoi(argv[2]);
            } else {
                numOverlap = DEFAULT_OVERLAP;
            }
        }
    }

    inValues1 = new float[numberElems];
    inValues2 = new float[numberElems];
    outValues = new float[numberElems];

    // Initialize the example matrices
    for(i = 0; i < numberElems; i++) {
        inValues1[i] = 10;
        inValues2[i] = 15;
    }

    initOpenCL();

    startExecution();

    finishOpenCL();

    free(inValues1);
    free(inValues2);
    free(outValues);
    return 0;
}