Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prpy logger issue #222

Open
shenlirobot opened this issue Nov 1, 2015 · 0 comments
Open

prpy logger issue #222

shenlirobot opened this issue Nov 1, 2015 · 0 comments
Labels

Comments

@shenlirobot
Copy link

When I tried to plan a path for Ada, it always come up with this error message.
By the way, I added this to the beginning of robot.py in prpy so that I can see more debugging messages.

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)

This is the error message: (see "TypeError: not enough arguments for format string" in the end)

[INFO] [prpy.planning.base:base.py:297]:plan: Sequence - Calling planner "CBiRRT".
[GeneralIK.cpp:58 Init] Initializing GeneralIK Solver
[cbirrtproblem.cpp:112 main] IKsolver initialized
[cbirrtproblem.cpp:771 RunCBirrt] Doing Goal sampling
[cbirrtproblem.cpp:771 RunCBirrt] Doing Goal sampling
[cbirrtproblem.cpp:771 RunCBirrt] Doing Goal sampling
[cbirrtproblem.cpp:771 RunCBirrt] Doing Goal sampling
[cbirrtproblem.cpp:843 RunCBirrt] Setting default init config to current config
[GeneralIK.cpp:58 Init] Initializing GeneralIK Solver
[GeneralIK.cpp:58 Init] Initializing GeneralIK Solver
[GeneralIK.cpp:58 Init] Initializing GeneralIK Solver
[GeneralIK.cpp:58 Init] Initializing GeneralIK Solver
[cbirrt.cpp:260 InitPlan] numdofs: 6
[cbirrt.cpp:305 InitPlan] grabbed: 0
[GeneralIK.cpp:58 Init] Initializing GeneralIK Solver
[cbirrt.cpp:314 InitPlan] Psample: 0.100000
[cbirrt.cpp:392 InitPlan] Checking for start projection...
[cbirrt.cpp:427 InitPlan] Start Node(s) Created
[cbirrt.cpp:860 AddRootConfiguration] Attached Solver Found a Solution!
[cbirrt.cpp:946 AddRootConfiguration] Constrained IK solution(s) found!
[cbirrt.cpp:622 PlanPath] Got first goal ik solution!
[cbirrt.cpp:746 PlanPath] Planning time: 0.063029s
[cbirrt.cpp:1183 _OptimizePath] Smoothing...
[cbirrt.cpp:1240 _OptimizePath] Done
[INFO] [prpy.planning.base:base.py:306]:plan: Sequence - Planning succeeded after 0.272 seconds with "CBiRRT".
[INFO] [prpy.base.robot:robot.py:400]:do_execute: Post-processing path with 142 waypoints.
[DEBUG] [prpy.base.robot:robot.py:275]:PostProcessPath: Detected "constrained" tag on trajectory: Setting constrained = True.
[DEBUG] [prpy.base.robot:robot.py:280]:PostProcessPath: Detected "smooth" tag on trajectory: Setting smooth = True
[DEBUG] [prpy.base.robot:robot.py:317]:do_postprocess: Setting robot "ADA" DOFs [2, 3, 4, 5, 6, 7] (affine? 0) as active for post-processing.
[DEBUG] [prpy.base.robot:robot.py:347]:do_postprocess: Shortcutting an unconstrained path.
[DEBUG] [prpy.base.robot:robot.py:355]:do_postprocess: Smoothing an unconstrained path.
[INFO] [prpy.planning.base:base.py:297]:plan: Sequence - Calling planner "ParabolicSmoother".
[INFO] [prpy.planning.base:base.py:306]:plan: Sequence - Planning succeeded after 0.301 seconds with "ParabolicSmoother".
[INFO] [prpy.base.robot:robot.py:410]:do_execute: Post-processing took 2.104 seconds and produced a path with 11 waypoints and a duration of 5.699 seconds.
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 851, in emit
    msg = self.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 724, in format
    return fmt.format(record)
  File "/home/shenli/storage/ada/src/prpy/src/prpy/logger.py", line 48, in format
    message = self._default_formatter.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
    msg = msg % self.args
TypeError: not enough arguments for format string
Logged from file util.py, line 80
@mkoval mkoval added the bug label Nov 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants