Skip to content
GitLab
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
9592ff02
Commit
9592ff02
authored
Feb 03, 2012
by
Florent Lamiraux
Committed by
Florent Lamiraux florent@laas.fr
Feb 03, 2012
Browse files
Fix compilation warning.
Do not return const object, add braces around else statement.
parent
bb418fab
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/hpp/core/planner.hh
View file @
9592ff02
...
...
@@ -116,7 +116,7 @@ namespace hpp {
/// \brief Get robot at given rank in the Problem vector.
/// \param rank
/// \return the shared pointer on the robot
const
CkppDeviceComponentShPtr
robotIthProblem
(
unsigned
int
rank
)
const
;
CkppDeviceComponentShPtr
robotIthProblem
(
unsigned
int
rank
)
const
;
/// \brief Get current configuration of i-th robot.
/// \param rank : Id of problem in vector.
...
...
src/planner.cc
View file @
9592ff02
...
...
@@ -188,7 +188,7 @@ namespace hpp {
// ======================================================================
const
CkppDeviceComponentShPtr
CkppDeviceComponentShPtr
Planner
::
robotIthProblem
(
unsigned
int
rank
)
const
{
CkppDeviceComponentShPtr
nullShPtr
;
...
...
@@ -792,9 +792,11 @@ namespace hpp {
CkcdObjectShPtr
kcdObject
=
KIT_DYNAMIC_PTR_CAST
(
CkcdObject
,
component
);
if
(
kcdObject
)
deviceBodies
.
insert
(
kcdObject
);
else
hppDout
(
error
,
"Cannot cast component "
<<
component
->
name
()
<<
" to CkcdObject"
);
else
{
hppDout
(
error
,
"Cannot cast component "
<<
component
->
name
()
<<
" to CkcdObject"
);
}
}
currentRank
++
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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