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-model
Commits
3d0221ad
Commit
3d0221ad
authored
Feb 10, 2015
by
Mylene Campana
Browse files
In CollisionObject, store and return joint as non const.
Manipulating const Joint is not realistic.
parent
f5cc1656
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/hpp/model/collision-object.hh
View file @
3d0221ad
...
...
@@ -51,8 +51,9 @@ namespace hpp {
const
std
::
string
&
name
()
const
{
return
name_
;}
/// Access to fcl object
fcl
::
CollisionObjectPtr_t
fcl
()
const
{
return
object_
;}
/// Access to the joint
const
JointConstPtr_t
&
joint
()
const
{
return
joint_
;}
/// Get joint
const
JointPtr_t
&
joint
()
{
return
joint_
;}
/// Set joint
void
joint
(
const
JointPtr_t
joint
);
/// Return the position in the joint frame
...
...
@@ -116,7 +117,7 @@ namespace hpp {
private:
fcl
::
CollisionObjectPtr_t
object_
;
fcl
::
Transform3f
positionInJointFrame_
;
Joint
Const
Ptr_t
joint_
;
JointPtr_t
joint_
;
std
::
string
name_
;
CollisionObjectWkPtr_t
weakPtr_
;
};
// class CollisionObject
...
...
Write
Preview
Supports
Markdown
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