Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Rospython script crashing/unable to downgrade

I have a launch file which uses a python script for my simulation, it launches fine, however when I try to implement any of the functions in the simulation, the script continues to crash.

Traceback (most recent call last): File "/home/david/DRC-Scratch-Repo/qual_task_1_bdi/scripts/qt1.py", line 674, in <module> teleop.run() File "/home/david/DRC-Scratch-Repo/qual_task_1_bdi/scripts/qt1.py", line 112, in run self.process_key(ch) File "/home/david/DRC-Scratch-Repo/qual_task_1_bdi/scripts/qt1.py", line 631, in process_key self.process_movement(ch) File "/home/david/DRC-Scratch-Repo/qual_task_1_bdi/scripts/qt1.py", line 558, in process_movement self.twist(dir["forward"], dir["lateral"], dir["turn"]) File "/home/david/DRC-Scratch-Repo/qual_task_1_bdi/scripts/qt1.py", line 532, in twist walk_msg.walk_params.step_data[x-1] = step AttributeError: 'AtlasBehaviorWalkParams' object has no attribute 'step_data' [walking_actionlib_client-2] process has died [pid 9520, exit code 1, cmd /home/david/DRC-Scratch-Repo/qual_task_1_bdi/scripts/qt1.py __name:=walking_actionlib_client __log:=/home/david/.ros/log/a6c0c5f8-f40b-11e2-9a81-a0b3cc4f7a9c/walking_actionlib_client-2.log]. log file: /home/david/.ros/log/a6c0c5f8-f40b-11e2-9a81-a0b3cc4f7a9c/walking_actionlib_client-2*.log

My friend who has an older version of drcsim(1.7) says it runs fine. But when I tried to install the older version after removing my own I got this from this command.

sudo apt-get install drcsim=1.7

E: version 1.7 for drcsim was not found.

So my issue is this, how do I properly install an older version of drcsim, or how can I modify the script to keep it from crashing?

This issue can also be followed on https://bitbucket.org/osrf/drcsim/issue/340/rospython-script-crashing-unable-to

where the script code is available

Rospython script crashing/unable to downgrade

I have a launch file which uses a python script for my simulation, it launches fine, however when I try to implement any of the functions in the simulation, the script continues to crash.

Traceback (most recent call last):
  File "/home/david/DRC-Scratch-Repo/qual_task_1_bdi/scripts/qt1.py", line 674, in <module>
    teleop.run()
  File "/home/david/DRC-Scratch-Repo/qual_task_1_bdi/scripts/qt1.py", line 112, in run
    self.process_key(ch)
  File "/home/david/DRC-Scratch-Repo/qual_task_1_bdi/scripts/qt1.py", line 631, in process_key
    self.process_movement(ch)
  File "/home/david/DRC-Scratch-Repo/qual_task_1_bdi/scripts/qt1.py", line 558, in process_movement
    self.twist(dir["forward"], dir["lateral"], dir["turn"])
  File "/home/david/DRC-Scratch-Repo/qual_task_1_bdi/scripts/qt1.py", line 532, in twist
    walk_msg.walk_params.step_data[x-1] = step
AttributeError: 'AtlasBehaviorWalkParams' object has no attribute 'step_data'
[walking_actionlib_client-2] process has died [pid 9520, exit code 1, cmd /home/david/DRC-Scratch-Repo/qual_task_1_bdi/scripts/qt1.py __name:=walking_actionlib_client __log:=/home/david/.ros/log/a6c0c5f8-f40b-11e2-9a81-a0b3cc4f7a9c/walking_actionlib_client-2.log].
log file: /home/david/.ros/log/a6c0c5f8-f40b-11e2-9a81-a0b3cc4f7a9c/walking_actionlib_client-2*.log

/home/david/.ros/log/a6c0c5f8-f40b-11e2-9a81-a0b3cc4f7a9c/walking_actionlib_client-2*.log

My friend who has an older version of drcsim(1.7) says it runs fine. But when I tried to install the older version after removing my own I got this from this command.

sudo apt-get install drcsim=1.7

E: version 1.7 for drcsim was not found.

So my issue is this, how do I properly install an older version of drcsim, or how can I modify the script to keep it from crashing?

This issue can also be followed on https://bitbucket.org/osrf/drcsim/issue/340/rospython-script-crashing-unable-to

where the script code is available