| |
|
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| |
|
| | #ifndef ROBOT_ROBOTOBJECT_H
|
| | #define ROBOT_ROBOTOBJECT_H
|
| |
|
| | #include <App/GeoFeature.h>
|
| | #include <App/PropertyFile.h>
|
| |
|
| | #include <Mod/Robot/RobotGlobal.h>
|
| |
|
| | #include "Robot6Axis.h"
|
| |
|
| |
|
| | namespace Robot
|
| | {
|
| |
|
| | class RobotExport RobotObject: public App::GeoFeature
|
| | {
|
| | PROPERTY_HEADER_WITH_OVERRIDE(Robot::RobotObject);
|
| |
|
| | public:
|
| |
|
| | RobotObject();
|
| |
|
| |
|
| | const char* getViewProviderName() const override
|
| | {
|
| | return "RobotGui::ViewProviderRobotObject";
|
| | }
|
| | App::DocumentObjectExecReturn* execute() override
|
| | {
|
| | return App::DocumentObject::StdReturn;
|
| | }
|
| | short mustExecute() const override;
|
| | PyObject* getPyObject() override;
|
| |
|
| | void Save(Base::Writer& ) const override;
|
| | void Restore(Base::XMLReader& ) override;
|
| |
|
| | Robot6Axis& getRobot()
|
| | {
|
| | return robot;
|
| | }
|
| |
|
| | App::PropertyFileIncluded RobotVrmlFile;
|
| | App::PropertyFileIncluded RobotKinematicFile;
|
| |
|
| | App::PropertyFloat Axis1, Axis2, Axis3, Axis4, Axis5, Axis6;
|
| |
|
| | App::PropertyPlacement Base;
|
| | App::PropertyPlacement Tool;
|
| | App::PropertyLink ToolShape;
|
| | App::PropertyPlacement ToolBase;
|
| | App::PropertyPlacement Tcp;
|
| |
|
| |
|
| | App::PropertyString Error;
|
| | App::PropertyFloatList Home;
|
| |
|
| | protected:
|
| |
|
| | void onChanged(const App::Property* prop) override;
|
| |
|
| | Robot6Axis robot;
|
| |
|
| | bool block {false};
|
| | };
|
| |
|
| | }
|
| |
|
| |
|
| | #endif
|
| |
|