crocoddyl: AttributeError: 'DifferentialActionDataContactFwdDynamics' object has no attribute 'contacts'
Hi,
python bipedal_walk.py
successfully runs.
When adding the display
argument for visualization, the following error occurs:
File “bipedal_walk.py”, line 72, in <module> ddp[i].solve(xs, us, 100, False, 0.1) File “/opt/openrobots/lib/python3.6/site-packages/crocoddyl/init.py”, line 158, in call self.visualization.displayFromSolver(solver) File “/opt/openrobots/lib/python3.6/site-packages/crocoddyl/init.py”, line 91, in displayFromSolver fs = self.getForceTrajectoryFromSolver(solver) File “/opt/openrobots/lib/python3.6/site-packages/crocoddyl/init.py”, line 121, in getForceTrajectoryFromSolver for key, contact in data.differential.contacts.contacts.items(): AttributeError: ‘DifferentialActionDataContactFwdDynamics’ object has no attribute ‘contacts’
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 25 (21 by maintainers)
Hi cmastalli. Thanks for your time! I cannot seem to get the biped_walk to work. I have gepettogui running, when running biped_walk I for a second see the talos hips, then it flickers to only its foot(?), then crashes.
The entire output of bipedal_walk is:
This is the output from the gepetto viewer. The code in bipedal_walk.py suggests that it loads the robot example file, is this correct? Or do I need to first load the talos robot in gepetto? Not sure why the iostream error, file not found maybe?