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-rbprm-corba
Commits
98126ad1
Commit
98126ad1
authored
Apr 07, 2021
by
Guilhem Saurel
Browse files
curves → ndcurves
parent
08526a8b
Pipeline
#13902
failed with stage
in 4 minutes and 48 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
script/tools/disp_bezier.py
View file @
98126ad1
from
curves
import
bezier
,
polynomial
from
numpy
import
matrix
from
numpy
import
matrix
from
numpy.linalg
import
norm
from
ndcurves
import
bezier
,
polynomial
def
displayBezierCurve
(
r
,
curve
,
step
=
0.001
,
color
=
[
0.85
,
0.75
,
0.15
,
1.0
],
name
=
None
,
offset
=
None
):
def
displayBezierCurve
(
r
,
curve
,
step
=
0.001
,
color
=
[
0.85
,
0.75
,
0.15
,
1.0
],
name
=
None
,
offset
=
None
):
if
name
==
None
:
if
name
is
None
:
name
=
"bezier_curve"
name
=
"bezier_curve"
list
=
r
.
client
.
gui
.
getNodeList
()
list
=
r
.
client
.
gui
.
getNodeList
()
i
=
0
i
=
0
...
...
src/hpp/corbaserver/rbprm/rbprmfullbody.py
View file @
98126ad1
...
@@ -16,10 +16,11 @@
...
@@ -16,10 +16,11 @@
# hpp-manipulation-corba. If not, see
# hpp-manipulation-corba. If not, see
# <http://www.gnu.org/licenses/>.
# <http://www.gnu.org/licenses/>.
from
numpy
import
array
,
matrix
from
hpp.corbaserver.rbprm
import
Client
as
RbprmClient
from
hpp.corbaserver.rbprm
import
Client
as
RbprmClient
from
hpp.corbaserver.robot
import
Robot
from
hpp.corbaserver.robot
import
Robot
from
curves
import
bezier
from
ndcurves
import
bezier
from
numpy
import
array
,
matrix
# # Load and handle a RbprmFullbody robot for rbprm planning
# # Load and handle a RbprmFullbody robot for rbprm planning
...
@@ -31,7 +32,7 @@ class FullBody(Robot):
...
@@ -31,7 +32,7 @@ class FullBody(Robot):
def
__init__
(
self
,
robotName
=
None
,
rootJointType
=
None
,
load
=
True
,
client
=
None
,
hppcorbaClient
=
None
,
clientRbprm
=
None
):
def
__init__
(
self
,
robotName
=
None
,
rootJointType
=
None
,
load
=
True
,
client
=
None
,
hppcorbaClient
=
None
,
clientRbprm
=
None
):
Robot
.
__init__
(
self
,
robotName
,
rootJointType
,
False
,
client
,
hppcorbaClient
)
Robot
.
__init__
(
self
,
robotName
,
rootJointType
,
False
,
client
,
hppcorbaClient
)
self
.
tf_root
=
"base_link"
self
.
tf_root
=
"base_link"
if
clientRbprm
==
None
:
if
clientRbprm
is
None
:
self
.
clientRbprm
=
RbprmClient
()
self
.
clientRbprm
=
RbprmClient
()
else
:
else
:
self
.
clientRbprm
=
clientRbprm
self
.
clientRbprm
=
clientRbprm
...
...
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