Skip to content

Commit

Permalink
Merge pull request #569 from luzpaz/typos-pt3
Browse files Browse the repository at this point in the history
source typo fixes pt3 (only on py3 merged code)
  • Loading branch information
wwmayer committed Mar 1, 2017
2 parents 6c720ce + a78e8ff commit 8b86bfb
Show file tree
Hide file tree
Showing 32 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Raytracing/App/FreeCADpov
Expand Up @@ -83,7 +83,7 @@ plane { // checkered floor
}


// includes the Part mesh writen from FreeCAD
// includes the Part mesh written from FreeCAD
#include "TempPart.inc"
object {Part
texture { pigment {rgb <0.3,0.8,0.3>} finish {ambient 0.2 reflection 0.2 specular 0.7} }
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Raytracing/App/LuxTools.cpp
Expand Up @@ -53,7 +53,7 @@ using namespace std;
std::string LuxTools::getCamera(const CamDef& Cam)
{
std::stringstream out;
out << "# declares positon and view direction" << endl
out << "# declares position and view direction" << endl
<< "# Generated by FreeCAD (http://www.freecadweb.org/)" << endl

// writing Camera positions
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Raytracing/App/PovTools.cpp
Expand Up @@ -60,7 +60,7 @@ using namespace std;
std::string PovTools::getCamera(const CamDef& Cam, int width, int height)
{
std::stringstream out;
out << "// declares positon and view direction\n" << endl
out << "// declares position and view direction\n" << endl
<< "// Generated by FreeCAD (http://www.freecadweb.org/)" << endl

// writing Camera positions
Expand Down Expand Up @@ -97,7 +97,7 @@ void PovTools::writeCameraVec(const char* FileName, const std::vector<CamDef>& C
{
std::stringstream out;
std::vector<CamDef>::const_iterator It;
out << "// declares positon and view directions\n"
out << "// declares position and view directions\n"
<< "// Generated by FreeCAD (http://www.freecadweb.org/)\n\n"
<< "// Total number of camera positions\n"
<< "#declare nCamPos = " << CamVec.size() << ";\n\n";
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Raytracing/App/resources/FCAnimation.inc
Expand Up @@ -44,7 +44,7 @@
#debug concat("T=",str(T,5,2)," T0=",str(T0,5,2)," T1=",str(T1,5,2)," T2=",str(T2,5,2)," T1Sin=",str(T1Sin,5,2),"\n")
#end

// Current time is allways zero based
// Current time is always zero based
#declare T = clock;

// Compute Scene number: One scene less than camera positions
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Raytracing/App/resources/FCAnimation.ini
Expand Up @@ -47,7 +47,7 @@ Final_Frame=1999
;Subset_Start_Frame=0
;Subset_End_Frame=29

; Clock range is allways [0..1]
; Clock range is always [0..1]
Initial_Clock=0.0
Final_Clock=1.0

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Raytracing/App/resources/FCSimple.pov
Expand Up @@ -17,7 +17,7 @@ global_settings {

// ----------------------------------------

// includes the Part mesh writen from FreeCAD
// includes the Part mesh written from FreeCAD
#include "TempPart.inc"
object {Part
texture { pigment {rgb <0.3,0.8,0.3>} finish {ambient 0.2 reflection 0.2 specular 0.7} }
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Raytracing/Gui/Command.cpp
Expand Up @@ -81,7 +81,7 @@ CmdRaytracingWriteCamera::CmdRaytracingWriteCamera()
sAppModule = "Raytracing";
sGroup = QT_TR_NOOP("Raytracing");
sMenuText = QT_TR_NOOP("Export camera to POV-Ray...");
sToolTipText = QT_TR_NOOP("Export the camera positon of the active 3D view in POV-Ray format to a file");
sToolTipText = QT_TR_NOOP("Export the camera position of the active 3D view in POV-Ray format to a file");
sWhatsThis = "Raytracing_WriteCamera";
sStatusTip = sToolTipText;
sPixmap = "Raytrace_Camera";
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Raytracing/Gui/FreeCADpov
Expand Up @@ -83,7 +83,7 @@ plane { // checkered floor
}


// includes the Part mesh writen from FreeCAD
// includes the Part mesh written from FreeCAD
#include "TempPart.inc"
object {Part
texture { pigment {rgb <0.3,0.8,0.3>} finish {ambient 0.2 reflection 0.2 specular 0.7} }
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/Robot6AxisPyImp.cpp
Expand Up @@ -154,7 +154,7 @@ void Robot6AxisPy::setTcp(Py::Object value)
}
else if (PyObject_TypeCheck(*value, &(Base::PlacementPy::Type))) {
if(! getRobot6AxisPtr()->setTo(*static_cast<Base::PlacementPy*>(*value)->getPlacementPtr()))
throw Base::Exception("Cant reach Point");
throw Base::Exception("Can not reach Point");
}
else {
std::string error = std::string("type must be 'Matrix' or 'Placement', not ");
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Robot/App/Trajectory.cpp
Expand Up @@ -189,7 +189,7 @@ void Trajectory::generateTrajectory(void)
}
else if (Cont && pcRoundComp) {
pcRoundComp->Add(Next);
// end a continous block
// end a continuous block
}
else if (Cont==false && pcRoundComp) {
// add the last one
Expand Down Expand Up @@ -220,7 +220,7 @@ void Trajectory::generateTrajectory(void)
break;
}

// add the segment if no continous block is running
// add the segment if no continuous block is running
if (!pcRoundComp)
pcTrajectory->Add(pcTrak);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/README.txt
Expand Up @@ -7,7 +7,7 @@ Coding standards :
Directories:
============

utilities: utility classes for KDL, should not be included seperatly
utilities: utility classes for KDL, should not be included separately
by a user

experimental: preliminary code snippets.
Expand Down
6 changes: 3 additions & 3 deletions src/Mod/Robot/App/kdl_cp/chainidsolver_vereshchagin.cpp
Expand Up @@ -220,8 +220,8 @@ void ChainIdSolver_Vereshchagin::downwards_sweep(const Jacobian& alfa, const Jnt
s.PC = s.P * s.C;

//u=(Q-Z(R+PC)=sum of external forces along the joint axes,
//R are the forces comming from the children,
//Q is taken zero (do we need to take the previous calculated torques?
//R are the forces coming from the children,
//Q is taken zero (do we need to take the previous calculated torques?)

//projection of coriolis and centrepital forces into joint subspace (0 0 Z)
s.totalBias = -dot(s.Z, s.R + s.PC);
Expand Down Expand Up @@ -388,7 +388,7 @@ void ChainIdSolver_Vereshchagin::getJointBiasAcceleration(JntArray& bias_q_dotdo
{
//this is only force
double tmp = results[i + 1].totalBias;
//this is accelleration
//this is acceleration
bias_q_dotdot(i) = tmp / results[i + 1].D;
//s.totalBias = - dot(s.Z, s.R + s.PC);
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/chainidsolver_vereshchagin.hpp
Expand Up @@ -76,7 +76,7 @@ class ChainIdSolver_Vereshchagin
void getLinkCartesianVelocity(Twists& xDot_base);
//Returns cartesian acceleration of links in base coordinates
void getLinkCartesianAcceleration(Twists& xDotDot_base);
//Returns cartesian postions of links in link tip coordinates
//Returns cartesian positions of links in link tip coordinates
void getLinkPose(Frames& x_local);
//Returns cartesian velocities of links in link tip coordinates
void getLinkVelocity(Twists& xDot_local);
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/chainiksolverpos_lma.hpp
Expand Up @@ -72,7 +72,7 @@ class ChainIkSolverPos_LMA : public KDL::ChainIkSolverPos
/**
* \brief constructs an ChainIkSolverPos_LMA solver.
*
* The default parameters are choosen to be applicable to industrial-size robots
* The default parameters are chosen to be applicable to industrial-size robots
* (e.g. 0.5 to 3 meters range in task space), with an accuracy that is more then
* sufficient for typical industrial applications.
*
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/frameacc.hpp
Expand Up @@ -4,7 +4,7 @@
* Rall Algebra of (subset of) the classes defined in frames,
* i.e. classes that contain a set (value,derivative,2nd derivative)
* and define operations on that set
* this classes are usefull for automatic differentiation ( <-> symbolic diff ,
* this classes are useful for automatic differentiation ( <-> symbolic diff ,
* <-> numeric diff).
* Defines VectorAcc, RotationAcc, FrameAcc, doubleAcc.
* Look at the corresponding classes Vector Rotation Frame Twist and
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Robot/App/kdl_cp/frames.cpp
Expand Up @@ -341,10 +341,10 @@ Vector Rotation::GetRot() const

/** Returns the rotation angle around the equiv. axis
* @param axis the rotation axis is returned in this variable
* @param eps : in the case of angle == 0 : rot axis is undefined and choosen
* @param eps : in the case of angle == 0 : rot axis is undefined and chosen
* to be the Z-axis
* in the case of angle == PI : 2 solutions, positive Z-component
* of the axis is choosen.
* of the axis is chosen.
* @result returns the rotation angle (between [0..PI] )
* /todo :
* Check corresponding routines in rframes and rrframes
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Robot/App/kdl_cp/frames.hpp
Expand Up @@ -378,10 +378,10 @@ class Rotation

/** Returns the rotation angle around the equiv. axis
* @param axis the rotation axis is returned in this variable
* @param eps : in the case of angle == 0 : rot axis is undefined and choosen
* @param eps : in the case of angle == 0 : rot axis is undefined and chosen
* to be +/- Z-axis
* in the case of angle == PI : 2 solutions, positive Z-component
* of the axis is choosen.
* of the axis is chosen.
* @result returns the rotation angle (between [0..PI] )
*/
double GetRotAngle(Vector& axis,double eps=epsilon) const;
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/framevel.hpp
Expand Up @@ -3,7 +3,7 @@
* This file contains the definition of classes for a
* Rall Algebra of (subset of) the classes defined in frames,
* i.e. classes that contain a pair (value,derivative) and define operations on that pair
* this classes are usefull for automatic differentiation ( <-> symbolic diff , <-> numeric diff)
* this classes are useful for automatic differentiation ( <-> symbolic diff , <-> numeric diff)
* Defines VectorVel, RotationVel, FrameVel. Look at Frames.h for details on how to work
* with Frame objects.
* \author
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/rotational_interpolation_sa.hpp
Expand Up @@ -56,7 +56,7 @@ namespace KDL {
* An interpolation algorithm which rotates a frame over the existing
* single rotation axis
* formed by start and end rotation. If more than one rotational axis
* exist, an arbitrary one will be choosen, therefore it is not recommended
* exist, an arbitrary one will be chosen, therefore it is not recommended
* to try to interpolate a 180 degrees rotation.
* @ingroup Motion
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/trajectory.hpp
Expand Up @@ -40,7 +40,7 @@
* $Id: trajectory.h,v 1.1.1.1.2.5 2003/07/23 16:44:25 psoetens Exp $
* $Name: $
* \todo
* Peter's remark : should seperate I/O from other routines in the
* Peter's remark : should separate I/O from other routines in the
* motion/chain directories
* The problem is that the I/O uses virtual inheritance to write
* the trajectories/geometries/velocityprofiles/...
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/tree.hpp
Expand Up @@ -40,7 +40,7 @@ namespace KDL
class TreeElement;

#ifdef KDL_USE_NEW_TREE_INTERFACE
//We use smart pointers for managing tree nodes for now becuase
//We use smart pointers for managing tree nodes for now because
//c++11 and unique_ptr support is not ubiquitous
typedef boost::shared_ptr<TreeElement> TreeElementPtr;
typedef boost::shared_ptr<const TreeElement> TreeElementConstPtr;
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Robot/App/kdl_cp/utilities/error.h
Expand Up @@ -56,7 +56,7 @@ namespace KDL {
class Error {
public:
/** Returns a description string describing the error.
* the returned pointer only garanteed to exists as long as
* the returned pointer only guaranteed to exists as long as
* the Error object exists.
*/
virtual ~Error() {}
Expand Down Expand Up @@ -129,7 +129,7 @@ class Error_Chain_Unexpected_id : public Error_ChainIO {
virtual const char* Description() const {return "Unexpected identifier, expecting TRANS or ROT";}
virtual int GetType() const {return 201;}
};
//! Error_Redundancy indicates an error that occured during solving for redundancy.
//! Error_Redundancy indicates an error that occurred during solving for redundancy.
class Error_RedundancyIO:public Error_IO {};
class Error_Redundancy_Illegal_Resolutiontype : public Error_RedundancyIO {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/utilities/error_stack.h
Expand Up @@ -33,7 +33,7 @@
* ORO_Geometry V0.2
*
* \par history
* - changed layout of the comments to accomodate doxygen
* - changed layout of the comments to accommodate doxygen
*/
#ifndef ERROR_STACK_H
#define ERROR_STACK_H
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/utilities/rall1d.h
Expand Up @@ -37,7 +37,7 @@ namespace KDL {
* - S defines a scalar type that can operate on Rall1d. This is the type that
* is used to give back values of Norm() etc.
*
* S is usefull when you recurse a Rall1d object into itself to create a 2nd, 3th, 4th,..
* S is useful when you recurse a Rall1d object into itself to create a 2nd, 3th, 4th,..
* derivatives. (e.g. Rall1d< Rall1d<double>, Rall1d<double>, double> ).
*
* S is always passed by value.
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/utilities/rall2d.h
Expand Up @@ -42,7 +42,7 @@ namespace KDL {
* - S defines a scalar type that can operate on Rall1d. This is the type that
* is used to give back values of Norm() etc.
*
* S is usefull when you recurse a Rall1d object into itself to create a 2nd, 3th, 4th,..
* S is useful when you recurse a Rall1d object into itself to create a 2nd, 3th, 4th,..
* derivatives. (e.g. Rall1d< Rall1d<double>, Rall1d<double>, double> ).
*
* S is always passed by value.
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/utilities/utility.cxx
Expand Up @@ -4,7 +4,7 @@
* ORO_Geometry V0.2
*
* @par history
* - changed layout of the comments to accomodate doxygen
* - changed layout of the comments to accommodate doxygen
*/

#include "utility.h"
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/utilities/utility.h
Expand Up @@ -16,7 +16,7 @@
* functions and macro definitions.
*
* \par history
* - changed layout of the comments to accomodate doxygen
* - changed layout of the comments to accommodate doxygen
*/


Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/Gui/Command.cpp
Expand Up @@ -73,7 +73,7 @@ void CmdRobotSetHomePos::activated(int)
}
else {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
QObject::tr("Select one Robot to set home postion"));
QObject::tr("Select one Robot to set home position"));
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/Gui/ViewProviderRobotObject.cpp
Expand Up @@ -193,7 +193,7 @@ void ViewProviderRobotObject::updateData(const App::Property* prop)
if (node) pcRobotRoot->addChild(node);
pcRobotRoot->addChild(pcTcpRoot);
}
// search for the conection points +++++++++++++++++++++++++++++++++++++++++++++++++
// search for the connection points +++++++++++++++++++++++++++++++++++++++++++++++++
Axis1Node = Axis2Node = Axis3Node = Axis4Node = Axis5Node = Axis6Node = 0;
SoSearchAction searchAction;
SoPath * path;
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Robot/RobotExample.py
Expand Up @@ -35,7 +35,7 @@
w = Waypoint(Placement(),name="Pt",type="LIN")
print(w.Name,w.Type,w.Pos,w.Cont,w.Velocity,w.Base,w.Tool)

# generate more. The Trajectory find allways outomatically a unique name for the waypoints
# generate more. The Trajectory find always outomatically a unique name for the waypoints
l = [w]
for i in range(5):
l.append(Waypoint(Placement(Vector(0,0,i*100),Vector(1,0,0),0),"LIN","Pt"))
Expand All @@ -61,7 +61,7 @@
# Define the visual representation and the kinematic definition (see [[6-Axis Robot]] for details about that)
App.activeDocument().Robot.RobotVrmlFile = App.getResourceDir()+"Mod/Robot/Lib/Kuka/kr500_1.wrl"
App.activeDocument().Robot.RobotKinematicFile = App.getResourceDir()+"Mod/Robot/Lib/Kuka/kr500_1.csv"
# start positon of the Axis (only that which differ from 0)
# start position of the Axis (only that which differ from 0)
App.activeDocument().Robot.Axis2 = -90
App.activeDocument().Robot.Axis3 = 90

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Sandbox/exportDRAWEXE.py
Expand Up @@ -161,7 +161,7 @@ def saveShape(csg,filename,shape,name,hasplacement = True,cleanshape=False):
sh=shape.copy()
sh.Placement=FreeCAD.Placement()
# it not yet tested if changing the placement recreated the
# tesselation. but for now we simply do the cleaing once agian
# tesselation. but for now we simply do the cleaing once again
# to stay on the safe side
if cleanshape:
shape = shape.cleaned()
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TemplatePyMod/DocumentObject.py
Expand Up @@ -306,7 +306,7 @@ def customFunctionSetLength(self,attr):
#---------------------------PRIVATE FUNCTIONS------------------------------
#These function won't be present in the object (begin with '_')
def _privateFunctionExample(self,attr):
FreeCAD.Console.PrintMessage("The lenght : "+str(attr)+"\n")
FreeCAD.Console.PrintMessage("The length : "+str(attr)+"\n")

def _recomputeShape(self):
if hasattr(self,"Length") and hasattr(self,"Width") and hasattr(self,"Height"):
Expand Down

0 comments on commit 8b86bfb

Please sign in to comment.