Robot: [skip ci] fix header uniformity + trailing whitespace
This PR fixes header uniformity across all Robot files
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2010 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2010 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) Jürgen Riegel (juergen.riegel@web.de) 2002 *
|
* Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) Jürgen Riegel (juergen.riegel@web.de) 2008 *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) Jürgen Riegel (juergen.riegel@web.de) 2002 *
|
* Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) Jürgen Riegel (juergen.riegel@web.de) 2002 *
|
* Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2010 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) Jürgen Riegel (juergen.riegel@web.de) 2002 *
|
* Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) Jürgen Riegel (juergen.riegel@web.de) 2009 *
|
* Copyright (c) 2009 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
@@ -162,5 +162,4 @@ void RobotObject::Restore(Base::XMLReader &reader)
|
|||||||
robot.setTo(Tcp.getValue());
|
robot.setTo(Tcp.getValue());
|
||||||
Tcp.setValue(robot.getTcp());
|
Tcp.setValue(robot.getTcp());
|
||||||
block = false;
|
block = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2010 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) Jürgen Riegel (juergen.riegel@web.de) 2002 *
|
* Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) Jürgen Riegel (juergen.riegel@web.de) 2009 *
|
* Copyright (c) 2009 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
@@ -21,8 +21,6 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef _Simulation_h_
|
#ifndef _Simulation_h_
|
||||||
#define _Simulation_h_
|
#define _Simulation_h_
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) Jürgen Riegel (juergen.riegel@web.de) 2002 *
|
* Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) Jürgen Riegel (juergen.riegel@web.de) 2009 *
|
* Copyright (c) 2009 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
@@ -23,11 +23,11 @@
|
|||||||
|
|
||||||
#ifndef ROBOT_Trajectory_H
|
#ifndef ROBOT_Trajectory_H
|
||||||
#define ROBOT_Trajectory_H
|
#define ROBOT_Trajectory_H
|
||||||
|
|
||||||
#include "kdl_cp/trajectory.hpp"
|
#include "kdl_cp/trajectory.hpp"
|
||||||
|
|
||||||
#include "Waypoint.h"
|
#include "Waypoint.h"
|
||||||
|
|
||||||
#include <Base/Persistence.h>
|
#include <Base/Persistence.h>
|
||||||
#include <Base/Placement.h>
|
#include <Base/Placement.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2010 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2010 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2010 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2010 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2010 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) Jürgen Riegel (juergen.riegel@web.de) 2002 *
|
* Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) Jürgen Riegel (juergen.riegel@web.de) 2002 *
|
* Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2010 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
@@ -63,7 +63,7 @@ CmdRobotSetHomePos::CmdRobotSetHomePos()
|
|||||||
|
|
||||||
void CmdRobotSetHomePos::activated(int)
|
void CmdRobotSetHomePos::activated(int)
|
||||||
{
|
{
|
||||||
const char * SelFilter =
|
const char * SelFilter =
|
||||||
"SELECT Robot::RobotObject COUNT 1 ";
|
"SELECT Robot::RobotObject COUNT 1 ";
|
||||||
|
|
||||||
Gui::SelectionFilter filter(SelFilter);
|
Gui::SelectionFilter filter(SelFilter);
|
||||||
@@ -79,13 +79,13 @@ void CmdRobotSetHomePos::activated(int)
|
|||||||
|
|
||||||
|
|
||||||
std::string FeatName = pcRobotObject->getNameInDocument();
|
std::string FeatName = pcRobotObject->getNameInDocument();
|
||||||
|
|
||||||
const char* n = FeatName.c_str();
|
const char* n = FeatName.c_str();
|
||||||
openCommand("Set home");
|
openCommand("Set home");
|
||||||
doCommand(Doc,"App.activeDocument().%s.Home = [App.activeDocument().%s.Axis1,App.activeDocument().%s.Axis2,App.activeDocument().%s.Axis3,App.activeDocument().%s.Axis4,App.activeDocument().%s.Axis5,App.activeDocument().%s.Axis6]",n,n,n,n,n,n,n);
|
doCommand(Doc,"App.activeDocument().%s.Home = [App.activeDocument().%s.Axis1,App.activeDocument().%s.Axis2,App.activeDocument().%s.Axis3,App.activeDocument().%s.Axis4,App.activeDocument().%s.Axis5,App.activeDocument().%s.Axis6]",n,n,n,n,n,n,n);
|
||||||
updateActive();
|
updateActive();
|
||||||
commitCommand();
|
commitCommand();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CmdRobotSetHomePos::isActive(void)
|
bool CmdRobotSetHomePos::isActive(void)
|
||||||
@@ -112,7 +112,7 @@ CmdRobotRestoreHomePos::CmdRobotRestoreHomePos()
|
|||||||
|
|
||||||
void CmdRobotRestoreHomePos::activated(int)
|
void CmdRobotRestoreHomePos::activated(int)
|
||||||
{
|
{
|
||||||
const char * SelFilter =
|
const char * SelFilter =
|
||||||
"SELECT Robot::RobotObject COUNT 1 ";
|
"SELECT Robot::RobotObject COUNT 1 ";
|
||||||
|
|
||||||
Gui::SelectionFilter filter(SelFilter);
|
Gui::SelectionFilter filter(SelFilter);
|
||||||
@@ -128,7 +128,7 @@ void CmdRobotRestoreHomePos::activated(int)
|
|||||||
|
|
||||||
|
|
||||||
std::string FeatName = pcRobotObject->getNameInDocument();
|
std::string FeatName = pcRobotObject->getNameInDocument();
|
||||||
|
|
||||||
const char* n = FeatName.c_str();
|
const char* n = FeatName.c_str();
|
||||||
openCommand("Move to home");
|
openCommand("Move to home");
|
||||||
doCommand(Doc,"App.activeDocument().%s.Axis1 = App.activeDocument().%s.Home[0]",n,n);
|
doCommand(Doc,"App.activeDocument().%s.Axis1 = App.activeDocument().%s.Home[0]",n,n);
|
||||||
@@ -139,7 +139,7 @@ void CmdRobotRestoreHomePos::activated(int)
|
|||||||
doCommand(Doc,"App.activeDocument().%s.Axis6 = App.activeDocument().%s.Home[5]",n,n);
|
doCommand(Doc,"App.activeDocument().%s.Axis6 = App.activeDocument().%s.Home[5]",n,n);
|
||||||
updateActive();
|
updateActive();
|
||||||
commitCommand();
|
commitCommand();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CmdRobotRestoreHomePos::isActive(void)
|
bool CmdRobotRestoreHomePos::isActive(void)
|
||||||
@@ -179,7 +179,7 @@ void CmdRobotConstraintAxle::activated(int)
|
|||||||
doCommand(Doc,"App.activeDocument().%s.Axis5 = 45",FeatName.c_str());
|
doCommand(Doc,"App.activeDocument().%s.Axis5 = 45",FeatName.c_str());
|
||||||
updateActive();
|
updateActive();
|
||||||
commitCommand();
|
commitCommand();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CmdRobotConstraintAxle::isActive(void)
|
bool CmdRobotConstraintAxle::isActive(void)
|
||||||
@@ -208,7 +208,7 @@ CmdRobotSimulate::CmdRobotSimulate()
|
|||||||
void CmdRobotSimulate::activated(int)
|
void CmdRobotSimulate::activated(int)
|
||||||
{
|
{
|
||||||
#if 1
|
#if 1
|
||||||
const char * SelFilter =
|
const char * SelFilter =
|
||||||
"SELECT Robot::RobotObject \n"
|
"SELECT Robot::RobotObject \n"
|
||||||
"SELECT Robot::TrajectoryObject ";
|
"SELECT Robot::TrajectoryObject ";
|
||||||
|
|
||||||
@@ -234,11 +234,11 @@ void CmdRobotSimulate::activated(int)
|
|||||||
|
|
||||||
Gui::TaskView::TaskDialog* dlg = new TaskDlgSimulate(pcRobotObject,pcTrajectoryObject);
|
Gui::TaskView::TaskDialog* dlg = new TaskDlgSimulate(pcRobotObject,pcTrajectoryObject);
|
||||||
Gui::Control().showDialog(dlg);
|
Gui::Control().showDialog(dlg);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
||||||
const char * SelFilter =
|
const char * SelFilter =
|
||||||
"SELECT Robot::RobotObject \n"
|
"SELECT Robot::RobotObject \n"
|
||||||
"SELECT Robot::TrajectoryObject ";
|
"SELECT Robot::TrajectoryObject ";
|
||||||
|
|
||||||
@@ -256,7 +256,7 @@ void CmdRobotSimulate::activated(int)
|
|||||||
|
|
||||||
RobotGui::TrajectorySimulate dlg(pcRobotObject,pcTrajectoryObject,Gui::getMainWindow());
|
RobotGui::TrajectorySimulate dlg(pcRobotObject,pcTrajectoryObject,Gui::getMainWindow());
|
||||||
dlg.exec();
|
dlg.exec();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CmdRobotSimulate::isActive(void)
|
bool CmdRobotSimulate::isActive(void)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
@@ -60,7 +60,7 @@ void CmdRobotExportKukaCompact::activated(int)
|
|||||||
{
|
{
|
||||||
unsigned int n1 = getSelection().countObjectsOfType(Robot::RobotObject::getClassTypeId());
|
unsigned int n1 = getSelection().countObjectsOfType(Robot::RobotObject::getClassTypeId());
|
||||||
unsigned int n2 = getSelection().countObjectsOfType(Robot::TrajectoryObject::getClassTypeId());
|
unsigned int n2 = getSelection().countObjectsOfType(Robot::TrajectoryObject::getClassTypeId());
|
||||||
|
|
||||||
if (n1 != 1 || n2 != 1) {
|
if (n1 != 1 || n2 != 1) {
|
||||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||||
QObject::tr("Select one Robot and one Trajectory object."));
|
QObject::tr("Select one Robot and one Trajectory object."));
|
||||||
@@ -122,7 +122,7 @@ void CmdRobotExportKukaFull::activated(int)
|
|||||||
{
|
{
|
||||||
unsigned int n1 = getSelection().countObjectsOfType(Robot::RobotObject::getClassTypeId());
|
unsigned int n1 = getSelection().countObjectsOfType(Robot::RobotObject::getClassTypeId());
|
||||||
unsigned int n2 = getSelection().countObjectsOfType(Robot::TrajectoryObject::getClassTypeId());
|
unsigned int n2 = getSelection().countObjectsOfType(Robot::TrajectoryObject::getClassTypeId());
|
||||||
|
|
||||||
if (n1 != 1 || n2 != 1) {
|
if (n1 != 1 || n2 != 1) {
|
||||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||||
QObject::tr("Select one Robot and one Trajectory object."));
|
QObject::tr("Select one Robot and one Trajectory object."));
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
@@ -73,7 +73,7 @@ void CmdRobotInsertKukaIR500::activated(int)
|
|||||||
doCommand(Doc,"App.activeDocument().%s.Home = [0.0,-90.0,90.0,0.0,45.0,0.0]",FeatName.c_str());
|
doCommand(Doc,"App.activeDocument().%s.Home = [0.0,-90.0,90.0,0.0,45.0,0.0]",FeatName.c_str());
|
||||||
updateActive();
|
updateActive();
|
||||||
commitCommand();
|
commitCommand();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CmdRobotInsertKukaIR500::isActive(void)
|
bool CmdRobotInsertKukaIR500::isActive(void)
|
||||||
@@ -114,7 +114,7 @@ void CmdRobotInsertKukaIR16::activated(int)
|
|||||||
doCommand(Doc,"App.activeDocument().%s.Axis5 = 45",FeatName.c_str());
|
doCommand(Doc,"App.activeDocument().%s.Axis5 = 45",FeatName.c_str());
|
||||||
updateActive();
|
updateActive();
|
||||||
commitCommand();
|
commitCommand();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CmdRobotInsertKukaIR16::isActive(void)
|
bool CmdRobotInsertKukaIR16::isActive(void)
|
||||||
@@ -155,7 +155,7 @@ void CmdRobotInsertKukaIR210::activated(int)
|
|||||||
doCommand(Doc,"App.activeDocument().%s.Axis5 = 45",FeatName.c_str());
|
doCommand(Doc,"App.activeDocument().%s.Axis5 = 45",FeatName.c_str());
|
||||||
updateActive();
|
updateActive();
|
||||||
commitCommand();
|
commitCommand();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CmdRobotInsertKukaIR210::isActive(void)
|
bool CmdRobotInsertKukaIR210::isActive(void)
|
||||||
@@ -195,7 +195,7 @@ void CmdRobotInsertKukaIR125::activated(int)
|
|||||||
doCommand(Doc,"App.activeDocument().%s.Axis5 = 45",FeatName.c_str());
|
doCommand(Doc,"App.activeDocument().%s.Axis5 = 45",FeatName.c_str());
|
||||||
updateActive();
|
updateActive();
|
||||||
commitCommand();
|
commitCommand();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CmdRobotInsertKukaIR125::isActive(void)
|
bool CmdRobotInsertKukaIR125::isActive(void)
|
||||||
@@ -229,7 +229,7 @@ void CmdRobotAddToolShape::activated(int)
|
|||||||
.getObjectsOfType(Base::Type::fromName("Part::Feature"));
|
.getObjectsOfType(Base::Type::fromName("Part::Feature"));
|
||||||
std::vector<App::DocumentObject*> VRMLs = getSelection()
|
std::vector<App::DocumentObject*> VRMLs = getSelection()
|
||||||
.getObjectsOfType(Base::Type::fromName("App::VRMLObject"));
|
.getObjectsOfType(Base::Type::fromName("App::VRMLObject"));
|
||||||
|
|
||||||
if (robots.size() != 1 || (shapes.size() != 1 && VRMLs.size() != 1)) {
|
if (robots.size() != 1 || (shapes.size() != 1 && VRMLs.size() != 1)) {
|
||||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||||
QObject::tr("Select one robot and one shape or VRML object."));
|
QObject::tr("Select one robot and one shape or VRML object."));
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
@@ -71,12 +71,12 @@ CmdRobotCreateTrajectory::CmdRobotCreateTrajectory()
|
|||||||
void CmdRobotCreateTrajectory::activated(int)
|
void CmdRobotCreateTrajectory::activated(int)
|
||||||
{
|
{
|
||||||
std::string FeatName = getUniqueObjectName("Trajectory");
|
std::string FeatName = getUniqueObjectName("Trajectory");
|
||||||
|
|
||||||
openCommand("Create trajectory");
|
openCommand("Create trajectory");
|
||||||
doCommand(Doc,"App.activeDocument().addObject(\"Robot::TrajectoryObject\",\"%s\")",FeatName.c_str());
|
doCommand(Doc,"App.activeDocument().addObject(\"Robot::TrajectoryObject\",\"%s\")",FeatName.c_str());
|
||||||
updateActive();
|
updateActive();
|
||||||
commitCommand();
|
commitCommand();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CmdRobotCreateTrajectory::isActive(void)
|
bool CmdRobotCreateTrajectory::isActive(void)
|
||||||
@@ -106,7 +106,7 @@ void CmdRobotInsertWaypoint::activated(int)
|
|||||||
{
|
{
|
||||||
unsigned int n1 = getSelection().countObjectsOfType(Robot::RobotObject::getClassTypeId());
|
unsigned int n1 = getSelection().countObjectsOfType(Robot::RobotObject::getClassTypeId());
|
||||||
unsigned int n2 = getSelection().countObjectsOfType(Robot::TrajectoryObject::getClassTypeId());
|
unsigned int n2 = getSelection().countObjectsOfType(Robot::TrajectoryObject::getClassTypeId());
|
||||||
|
|
||||||
if (n1 != 1 || n2 != 1) {
|
if (n1 != 1 || n2 != 1) {
|
||||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||||
QObject::tr("Select one Robot and one Trajectory object."));
|
QObject::tr("Select one Robot and one Trajectory object."));
|
||||||
@@ -133,7 +133,7 @@ void CmdRobotInsertWaypoint::activated(int)
|
|||||||
doCommand(Doc,"App.activeDocument().%s.Trajectory = App.activeDocument().%s.Trajectory.insertWaypoints(Robot.Waypoint(App.activeDocument().%s.Tcp.multiply(App.activeDocument().%s.Tool),type='LIN',name='Pt',vel=_DefSpeed,cont=_DefCont,acc=_DefAccelaration,tool=1))",TrakName.c_str(),TrakName.c_str(),RoboName.c_str(),RoboName.c_str());
|
doCommand(Doc,"App.activeDocument().%s.Trajectory = App.activeDocument().%s.Trajectory.insertWaypoints(Robot.Waypoint(App.activeDocument().%s.Tcp.multiply(App.activeDocument().%s.Tool),type='LIN',name='Pt',vel=_DefSpeed,cont=_DefCont,acc=_DefAccelaration,tool=1))",TrakName.c_str(),TrakName.c_str(),RoboName.c_str(),RoboName.c_str());
|
||||||
updateActive();
|
updateActive();
|
||||||
commitCommand();
|
commitCommand();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CmdRobotInsertWaypoint::isActive(void)
|
bool CmdRobotInsertWaypoint::isActive(void)
|
||||||
@@ -162,7 +162,7 @@ CmdRobotInsertWaypointPreselect::CmdRobotInsertWaypointPreselect()
|
|||||||
|
|
||||||
void CmdRobotInsertWaypointPreselect::activated(int)
|
void CmdRobotInsertWaypointPreselect::activated(int)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (getSelection().size() != 1 ) {
|
if (getSelection().size() != 1 ) {
|
||||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||||
QObject::tr("Select one Trajectory object."));
|
QObject::tr("Select one Trajectory object."));
|
||||||
@@ -197,7 +197,7 @@ void CmdRobotInsertWaypointPreselect::activated(int)
|
|||||||
doCommand(Doc,"App.activeDocument().%s.Trajectory = App.activeDocument().%s.Trajectory.insertWaypoints(Robot.Waypoint(FreeCAD.Placement(FreeCAD.Vector(%f,%f,%f)+_DefDisplacement,_DefOrientation),type='LIN',name='Pt',vel=_DefSpeed,cont=_DefCont,acc=_DefAccelaration,tool=1))",TrakName.c_str(),TrakName.c_str(),x,y,z);
|
doCommand(Doc,"App.activeDocument().%s.Trajectory = App.activeDocument().%s.Trajectory.insertWaypoints(Robot.Waypoint(FreeCAD.Placement(FreeCAD.Vector(%f,%f,%f)+_DefDisplacement,_DefOrientation),type='LIN',name='Pt',vel=_DefSpeed,cont=_DefCont,acc=_DefAccelaration,tool=1))",TrakName.c_str(),TrakName.c_str(),x,y,z);
|
||||||
updateActive();
|
updateActive();
|
||||||
commitCommand();
|
commitCommand();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CmdRobotInsertWaypointPreselect::isActive(void)
|
bool CmdRobotInsertWaypointPreselect::isActive(void)
|
||||||
@@ -225,7 +225,7 @@ CmdRobotSetDefaultOrientation::CmdRobotSetDefaultOrientation()
|
|||||||
|
|
||||||
void CmdRobotSetDefaultOrientation::activated(int)
|
void CmdRobotSetDefaultOrientation::activated(int)
|
||||||
{
|
{
|
||||||
// create placement dialog
|
// create placement dialog
|
||||||
Gui::Dialog::Placement Dlg;
|
Gui::Dialog::Placement Dlg;
|
||||||
Base::Placement place;
|
Base::Placement place;
|
||||||
Dlg.setPlacement(place);
|
Dlg.setPlacement(place);
|
||||||
@@ -270,7 +270,7 @@ void CmdRobotSetDefaultValues::activated(int)
|
|||||||
QString::fromLatin1("1 m/s"), &ok);
|
QString::fromLatin1("1 m/s"), &ok);
|
||||||
if ( ok && !text.isEmpty() ) {
|
if ( ok && !text.isEmpty() ) {
|
||||||
doCommand(Doc,"_DefSpeed = '%s'",text.toLatin1().constData());
|
doCommand(Doc,"_DefSpeed = '%s'",text.toLatin1().constData());
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList items;
|
QStringList items;
|
||||||
items << QString::fromLatin1("False") << QString::fromLatin1("True");
|
items << QString::fromLatin1("False") << QString::fromLatin1("True");
|
||||||
@@ -287,10 +287,10 @@ void CmdRobotSetDefaultValues::activated(int)
|
|||||||
QString::fromLatin1("1 m/s^2"), &ok);
|
QString::fromLatin1("1 m/s^2"), &ok);
|
||||||
if ( ok && !text.isEmpty() ) {
|
if ( ok && !text.isEmpty() ) {
|
||||||
doCommand(Doc,"_DefAccelaration = '%s'",text.toLatin1().constData());
|
doCommand(Doc,"_DefAccelaration = '%s'",text.toLatin1().constData());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// create placement dialog
|
// create placement dialog
|
||||||
//Gui::Dialog::Placement *Dlg = new Gui::Dialog::Placement();
|
//Gui::Dialog::Placement *Dlg = new Gui::Dialog::Placement();
|
||||||
//Base::Placement place;
|
//Base::Placement place;
|
||||||
//Dlg->setPlacement(place);
|
//Dlg->setPlacement(place);
|
||||||
@@ -301,7 +301,7 @@ void CmdRobotSetDefaultValues::activated(int)
|
|||||||
// doCommand(Doc,"_DefOrientation = FreeCAD.Rotation(%f,%f,%f,%f)",rot[0],rot[1],rot[2],rot[3]);
|
// doCommand(Doc,"_DefOrientation = FreeCAD.Rotation(%f,%f,%f,%f)",rot[0],rot[1],rot[2],rot[3]);
|
||||||
// doCommand(Doc,"_DefDisplacement = FreeCAD.Vector(%f,%f,%f)",disp[0],disp[1],disp[2]);
|
// doCommand(Doc,"_DefDisplacement = FreeCAD.Vector(%f,%f,%f)",disp[0],disp[1],disp[2]);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CmdRobotSetDefaultValues::isActive(void)
|
bool CmdRobotSetDefaultValues::isActive(void)
|
||||||
@@ -329,9 +329,9 @@ CmdRobotEdge2Trac::CmdRobotEdge2Trac()
|
|||||||
|
|
||||||
void CmdRobotEdge2Trac::activated(int)
|
void CmdRobotEdge2Trac::activated(int)
|
||||||
{
|
{
|
||||||
|
|
||||||
/* App::DocumentObject *obj = this->getDocument()->getObject(FeatName.c_str());
|
/* App::DocumentObject *obj = this->getDocument()->getObject(FeatName.c_str());
|
||||||
App::Property *prop = &(dynamic_cast<Robot::Edge2TracObject *>(obj)->Source);
|
App::Property *prop = &(dynamic_cast<Robot::Edge2TracObject *>(obj)->Source);
|
||||||
|
|
||||||
Gui::TaskView::TaskDialog* dlg = new TaskDlgEdge2Trac(dynamic_cast<Robot::Edge2TracObject *>(obj));
|
Gui::TaskView::TaskDialog* dlg = new TaskDlgEdge2Trac(dynamic_cast<Robot::Edge2TracObject *>(obj));
|
||||||
Gui::Control().showDialog(dlg);*/
|
Gui::Control().showDialog(dlg);*/
|
||||||
@@ -363,7 +363,7 @@ void CmdRobotEdge2Trac::activated(int)
|
|||||||
doCommand(Doc,"App.activeDocument().addObject('Robot::Edge2TracObject','%s')",FeatName.c_str());
|
doCommand(Doc,"App.activeDocument().addObject('Robot::Edge2TracObject','%s')",FeatName.c_str());
|
||||||
doCommand(Gui,"Gui.activeDocument().setEdit('%s')",FeatName.c_str());
|
doCommand(Gui,"Gui.activeDocument().setEdit('%s')",FeatName.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
@@ -21,4 +21,4 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
#include "PreCompiled.h"
|
#include "PreCompiled.h"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
@@ -47,8 +47,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _PreComp_
|
#ifdef _PreComp_
|
||||||
|
|
||||||
// Python
|
// Python
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
|
||||||
// standard
|
// standard
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
#ifndef __Qt4All__
|
#ifndef __Qt4All__
|
||||||
# include <Gui/Qt4All.h>
|
# include <Gui/Qt4All.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif //_PreComp_
|
#endif //_PreComp_
|
||||||
|
|
||||||
#endif // ROBOTGUI_PRECOMPILED_H
|
#endif // ROBOTGUI_PRECOMPILED_H
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2010 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
@@ -58,7 +58,7 @@ PROPERTY_SOURCE(RobotGui::ViewProviderRobotObject, Gui::ViewProviderGeometryObje
|
|||||||
ViewProviderRobotObject::ViewProviderRobotObject()
|
ViewProviderRobotObject::ViewProviderRobotObject()
|
||||||
: pcDragger(0),toolShape(0)
|
: pcDragger(0),toolShape(0)
|
||||||
{
|
{
|
||||||
ADD_PROPERTY(Manipulator,(0));
|
ADD_PROPERTY(Manipulator,(0));
|
||||||
|
|
||||||
pcRobotRoot = new Gui::SoFCSelection();
|
pcRobotRoot = new Gui::SoFCSelection();
|
||||||
pcRobotRoot->highlightMode = Gui::SoFCSelection::OFF;
|
pcRobotRoot->highlightMode = Gui::SoFCSelection::OFF;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
@@ -65,7 +65,7 @@ PROPERTY_SOURCE(RobotGui::ViewProviderTrajectory, Gui::ViewProviderGeometryObjec
|
|||||||
|
|
||||||
ViewProviderTrajectory::ViewProviderTrajectory()
|
ViewProviderTrajectory::ViewProviderTrajectory()
|
||||||
{
|
{
|
||||||
|
|
||||||
pcTrajectoryRoot = new Gui::SoFCSelection();
|
pcTrajectoryRoot = new Gui::SoFCSelection();
|
||||||
pcTrajectoryRoot->highlightMode = Gui::SoFCSelection::OFF;
|
pcTrajectoryRoot->highlightMode = Gui::SoFCSelection::OFF;
|
||||||
pcTrajectoryRoot->selectionMode = Gui::SoFCSelection::SEL_OFF;
|
pcTrajectoryRoot->selectionMode = Gui::SoFCSelection::SEL_OFF;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
@@ -31,8 +31,8 @@
|
|||||||
class SoDragger;
|
class SoDragger;
|
||||||
class SoJackDragger;
|
class SoJackDragger;
|
||||||
class SoCoordinate3;
|
class SoCoordinate3;
|
||||||
class SoDrawStyle;
|
class SoDrawStyle;
|
||||||
class SoLineSet;
|
class SoLineSet;
|
||||||
|
|
||||||
namespace RobotGui
|
namespace RobotGui
|
||||||
{
|
{
|
||||||
@@ -55,7 +55,7 @@ public:
|
|||||||
void setupContextMenu(QMenu* menu, QObject* receiver, const char* member);
|
void setupContextMenu(QMenu* menu, QObject* receiver, const char* member);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
Gui::SoFCSelection * pcTrajectoryRoot;
|
Gui::SoFCSelection * pcTrajectoryRoot;
|
||||||
SoCoordinate3 * pcCoords;
|
SoCoordinate3 * pcCoords;
|
||||||
SoDrawStyle * pcDrawStyle;
|
SoDrawStyle * pcDrawStyle;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2010 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2008 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
@@ -62,6 +62,6 @@ std::vector<App::DocumentObject*> ViewProviderTrajectoryDressUp::claimChildren(v
|
|||||||
{
|
{
|
||||||
std::vector<App::DocumentObject*> temp;
|
std::vector<App::DocumentObject*> temp;
|
||||||
temp.push_back(static_cast<Robot::TrajectoryDressUpObject*>(getObject())->Source.getValue());
|
temp.push_back(static_cast<Robot::TrajectoryDressUpObject*>(getObject())->Source.getValue());
|
||||||
|
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2010 Jürgen Riegel (juergen.riegel@web.de) *
|
* Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
* *
|
* *
|
||||||
* This file is part of the FreeCAD CAx development system. *
|
* This file is part of the FreeCAD CAx development system. *
|
||||||
* *
|
* *
|
||||||
@@ -36,7 +36,7 @@ class RobotGuiExport ViewProviderTrajectoryDressUp : public ViewProviderTrajecto
|
|||||||
public:
|
public:
|
||||||
//virtual bool doubleClicked(void);
|
//virtual bool doubleClicked(void);
|
||||||
|
|
||||||
/// grouping handling
|
/// grouping handling
|
||||||
std::vector<App::DocumentObject*> claimChildren(void)const;
|
std::vector<App::DocumentObject*> claimChildren(void)const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
# FreeCAD init script of the Robot module
|
# FreeCAD init script of the Robot module
|
||||||
# (c) 2001 Juergen Riegel
|
# (c) 2001 Jürgen Riegel
|
||||||
|
|
||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
#* (c) Juergen Riegel (juergen.riegel@web.de) 2002 *
|
#* Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
#* *
|
#* *
|
||||||
#* This file is part of the FreeCAD CAx development system. *
|
#* This file is part of the FreeCAD CAx development system. *
|
||||||
#* *
|
#* *
|
||||||
@@ -13,14 +13,13 @@
|
|||||||
#* for detail see the LICENCE text file. *
|
#* for detail see the LICENCE text file. *
|
||||||
#* *
|
#* *
|
||||||
#* FreeCAD is distributed in the hope that it will be useful, *
|
#* FreeCAD is distributed in the hope that it will be useful, *
|
||||||
#* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
#* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
#* GNU Lesser General Public License for more details. *
|
#* GNU Lesser General Public License for more details. *
|
||||||
#* *
|
#* *
|
||||||
#* You should have received a copy of the GNU Library General Public *
|
#* You should have received a copy of the GNU Library General Public *
|
||||||
#* License along with FreeCAD; if not, write to the Free Software *
|
#* License along with FreeCAD; if not, write to the Free Software *
|
||||||
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||||
#* USA *
|
#* USA *
|
||||||
#* *
|
#* *
|
||||||
#* Juergen Riegel 2002 *
|
|
||||||
#***************************************************************************/
|
#***************************************************************************/
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
# Robot gui init module
|
# Robot gui init module
|
||||||
# (c) 2009 Juergen Riegel
|
# (c) 2009 Jürgen Riegel
|
||||||
#
|
#
|
||||||
# Gathering all the information to start FreeCAD
|
# Gathering all the information to start FreeCAD
|
||||||
# This is the second one of three init scripts, the third one
|
# This is the second one of three init scripts, the third one
|
||||||
# runs when the gui is up
|
# runs when the gui is up
|
||||||
|
|
||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
#* (c) Juergen Riegel (juergen.riegel@web.de) 2009 *
|
#* Copyright (c) 2009 Jürgen Riegel <juergen.riegel@web.de> *
|
||||||
#* *
|
#* *
|
||||||
#* This file is part of the FreeCAD CAx development system. *
|
#* This file is part of the FreeCAD CAx development system. *
|
||||||
#* *
|
#* *
|
||||||
@@ -17,20 +17,18 @@
|
|||||||
#* for detail see the LICENCE text file. *
|
#* for detail see the LICENCE text file. *
|
||||||
#* *
|
#* *
|
||||||
#* FreeCAD is distributed in the hope that it will be useful, *
|
#* FreeCAD is distributed in the hope that it will be useful, *
|
||||||
#* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
#* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
#* GNU Lesser General Public License for more details. *
|
#* GNU Lesser General Public License for more details. *
|
||||||
#* *
|
#* *
|
||||||
#* You should have received a copy of the GNU Library General Public *
|
#* You should have received a copy of the GNU Library General Public *
|
||||||
#* License along with FreeCAD; if not, write to the Free Software *
|
#* License along with FreeCAD; if not, write to the Free Software *
|
||||||
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||||
#* USA *
|
#* USA *
|
||||||
#* *
|
#* *
|
||||||
#* Juergen Riegel 2009 *
|
|
||||||
#***************************************************************************/
|
#***************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class RobotWorkbench ( Workbench ):
|
class RobotWorkbench ( Workbench ):
|
||||||
"Robot workbench object"
|
"Robot workbench object"
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Kuka export lib (c) Juergen Riegel 2009 LGPL 2.1 or higher
|
# Kuka export lib (c) Jürgen Riegel 2009 LGPL 2.1 or higher
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ def ExportCompactSub(Rob,Trak,FileName):
|
|||||||
SrcFile.write(HeaderSrc)
|
SrcFile.write(HeaderSrc)
|
||||||
# subroutine definition
|
# subroutine definition
|
||||||
SrcFile.write("DEF "+Trak.Name+"( )\n\n")
|
SrcFile.write("DEF "+Trak.Name+"( )\n\n")
|
||||||
SrcFile.write(";- Kuka src file, generated by FreeCAD (http://www.freecadweb.org)\n")
|
SrcFile.write(";- Kuka src file, generated by FreeCAD (https://www.freecadweb.org)\n")
|
||||||
SrcFile.write(";- "+ time.asctime()+"\n\n")
|
SrcFile.write(";- "+ time.asctime()+"\n\n")
|
||||||
# defining world and base
|
# defining world and base
|
||||||
SrcFile.write(";------------- definitions ------------\n")
|
SrcFile.write(";------------- definitions ------------\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user