Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Humanoid Path Planner
hpp-core
Commits
ab76611e
Commit
ab76611e
authored
Nov 08, 2007
by
David Flavigne
Browse files
Removed implementation of methods that have disappeared from the ChppBody.
Concerns only installation with --enable-body option.
parent
df5d9898
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
ab76611e
2007/11/08
Removed implementation of methods that have disappeared from the ChppBody.
2007/11/07
Reorganization of header files to solve some compilation problems.
...
...
src/hppBody.cpp
View file @
ab76611e
...
...
@@ -11,8 +11,6 @@
#include "KineoKCDModel/kppKCDAssembly.h"
#include "KineoModel/kppJointComponent.h"
#include "hppBody.h"
//=============================================================================
ChppBodyShPtr
ChppBody
::
create
(
std
::
string
inName
)
...
...
@@ -405,71 +403,3 @@ void ChppBody::printCollisionStatusFast()
}
//=============================================================================
void
ChppBody
::
mass
(
double
m
)
{
_mass
=
m
;
}
//=============================================================================
double
ChppBody
::
mass
()
{
return
_mass
;
}
//=============================================================================
void
ChppBody
::
intertia
(
std
::
vector
<
double
>
i
)
{
_inertia
=
i
;
}
//=============================================================================
std
::
vector
<
double
>
ChppBody
::
inertia
()
{
return
_inertia
;
}
//=============================================================================
void
ChppBody
::
relComVec
(
double
x
,
double
y
,
double
z
)
{
_relComVec
=
CkitVect3
(
x
,
y
,
z
);
}
//=============================================================================
void
ChppBody
::
relComVec
(
const
CkitVect3
&
vec
)
{
_relComVec
=
CkitVect3
(
vec
);
}
//=============================================================================
const
CkitVect3
&
ChppBody
::
relComVec
()
const
{
return
_relComVec
;
}
//=============================================================================
ktStatus
ChppBody
::
currentComPos
(
CkitPoint3
&
pos
)
{
CkwsJointShPtr
kwsJoint
;
if
(
!
(
kwsJoint
=
joint
())){
std
::
cerr
<<
" in ChppBody::currentComPos(): for "
<<
name
()
<<
", joint not attached. "
<<
std
::
endl
;
return
KD_ERROR
;
}
// it should be "point" so that translation is taken into account.
CkitPoint3
relCom
(
_relComVec
);
CkitMat4
currentPos
=
kwsJoint
->
currentPosition
();
pos
=
currentPos
*
relCom
;
return
KD_OK
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment