Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
multicontact-locomotion-planning
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
loco-3d
multicontact-locomotion-planning
Commits
a37f565e
Commit
a37f565e
authored
6 years ago
by
Pierre Fernbach
Browse files
Options
Downloads
Patches
Plain Diff
[config] improve error message about python argument and display all available choices
parent
acb06e37
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/hpp_wholebody_motion/config.py
+11
-4
11 additions, 4 deletions
scripts/hpp_wholebody_motion/config.py
with
11 additions
and
4 deletions
scripts/hpp_wholebody_motion/config.py
+
11
−
4
View file @
a37f565e
...
...
@@ -5,8 +5,8 @@ PKG_PATH = os.environ['DEVEL_HPP_DIR']+"/src/hpp-wholebody-motion"
OUTPUT_DIR
=
PKG_PATH
+
"
/res
"
CONTACT_SEQUENCE_PATH
=
OUTPUT_DIR
+
"
/contact_sequences
"
TIME_OPT_CONFIG_PATH
=
PKG_PATH
+
'
/timeOpt_configs
'
LOAD_CS
=
Tru
e
LOAD_CS_COM
=
Tru
e
LOAD_CS
=
Fals
e
LOAD_CS_COM
=
Fals
e
SAVE_CS
=
not
LOAD_CS
and
True
SAVE_CS_COM
=
not
LOAD_CS_COM
and
True
EXPORT_GAZEBO
=
True
...
...
@@ -16,7 +16,7 @@ EXPORT_PATH = OUTPUT_DIR+"/export"
DISPLAY_CS
=
False
# display contact sequence from rbprm
DISPLAY_CS_STONES
=
True
# display stepping stones
DISPLAY_INIT_GUESS_TRAJ
=
False
DISPLAY_WP_COST
=
Fals
e
DISPLAY_WP_COST
=
Tru
e
DISPLAY_COM_TRAJ
=
True
DISPLAY_FEET_TRAJ
=
True
DISPLAY_WB_MOTION
=
True
...
...
@@ -41,7 +41,7 @@ EFF_CHECK_COLLISION = True
## Settings for whole body :
YAW_ROT_GAIN
=
1.
USE_CROC_COM
=
False
WB_VERBOSE
=
Fals
e
WB_VERBOSE
=
Tru
e
WB_STOP_AT_EACH_PHASE
=
False
IK_dt
=
0.001
# controler time step
IK_PRINT_N
=
500
# print state of the problem every IK_PRINT_N time steps (if verbose = True)
...
...
@@ -51,6 +51,13 @@ IK_PRINT_N = 500 # print state of the problem every IK_PRINT_N time steps (if v
import
importlib
import
sys
if
len
(
sys
.
argv
)
<
2
:
print
"
You must call this script with the name of the config file (one of the file contained in hpp_wholebody_motion.demo_config)
"
print
"
Available demo files :
"
configs_path
=
PKG_PATH
+
"
/scripts/hpp_wholebody_motion/demo_configs
"
demos_list
=
os
.
listdir
(
configs_path
)
for
f
in
demos_list
:
if
f
.
endswith
(
"
.py
"
)
and
not
f
.
startswith
(
"
__
"
)
:
print
f
.
rstrip
(
"
.py
"
)
raise
IOError
(
"
You must call this script with the name of the config file (one of the file contained in hpp_wholebody_motion.demo_config)
"
)
import
argparse
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment