Gazebo | Ignition | Community
Ask Your Question

David Jeang's profile - activity

2017-01-11 19:46:43 -0500 received badge  Famous Question (source)
2016-10-17 17:12:41 -0500 received badge  Taxonomist
2016-01-27 14:28:04 -0500 received badge  Famous Question (source)
2015-10-31 12:30:25 -0500 marked best answer ROS python control for drcsim2.5

I've been following the python tutorial to the letter: http://gazebosim.org/wiki/Tutorials/drcsim/2.5/AtlascontroloverROStopicswithpython

But when I try to test it, it goes

Traceback (most recent call last):
  File "traj_yaml.py", line 4, in <module>
    from atlas_msgs.msg import AtlasCommand
ImportError: No module named atlas_msgs.msg

What can I do to solve this?

2015-10-31 12:30:16 -0500 marked best answer sdf version problems cause drcsim2.6 and gazebo1.8 to crash

I've recently updated to drcsim 2.6 and gazebo 1.8, however when I attempt the command: roslaunch atlasutils atlasdrcvehiclefire_hose.launch

I receive the following warnings before it crashes:

Warning [parser.cc:361] Converting a deprecated SDF source[/usr/share/drcsim-2.6/gazebomodels/environments/vrcfirehoselong/model.sdf]. Warning [Converter.cc:58] Version[1.3] to Version[1.4] Please use the gzsdf tool to update your SDF files. $ gzsdf convert [sdffile] Warning [parser.cc:361] Converting a deprecated SDF source[/usr/share/drcsim-2.6/gazebomodels/environments/vrcstandpipe/model.sdf]. Warning [Converter.cc:58] Version[1.3] to Version[1.4] Please use the gzsdf tool to update your SDF files. $ gzsdf convert [sdffile] Warning [parser.cc:361] Converting a deprecated SDF source[/usr/share/drcsim-2.6/gazebomodels/environments/vrcvalve/model.sdf]. Warning [Converter.cc:58] Version[1.3] to Version[1.4] Please use the gzsdf tool to update your SDF files. $ gzsdf convert [sdffile] Warning [gazebo_main.cc:62] escalating to SIGKILL on client

I have attempted to use the command gzsdf convert /usr/share/drcsim-2.6/gazebomodels/environments/vrcfirehose_long/model.sdf etc.

and then rerunning the roslaunch command, but it gives the same warnings. I have checked other topics, but they cannot seem to solve it.

I have also attempted to amend it by redownloading the environment models by moving them to a temporary file. sudo mv /usr/share/drcsim-2.6/gazebo_models/environments /home/david/backup-drc/

with the resulting problem when I try roslaunch Warning [ModelDatabase.cc:331] Getting models from[http://gazebosim.org/models/]. This may take a few seconds. Exception AttributeError: AttributeError("'DummyThread' object has no attribute 'Threadblock'",) in <module 'threading'="" from="" '="" usr="" lib="" python2.7="" threading.pyc'=""> ignored process[atlasrobotstatepublisher-9]: started with pid [20942] Exception AttributeError: AttributeError("'DummyThread' object has no attribute 'Threadblock'",) in <module 'threading'="" from="" '="" usr="" lib="" python2.7="" threading.pyc'=""> ignored process[multisenseslrobotstatepublisher-10]: started with pid [20971] Exception AttributeError: AttributeError("'DummyThread' object has no attribute 'Threadblock'",) in <module 'threading'="" from="" '="" usr="" lib="" python2.7="" threading.pyc'=""> ignored process[tf2bufferserver-11]: started with pid [21014] Exception AttributeError: AttributeError("'DummyThread' object has no attribute 'Threadblock'",) in <module 'threading'="" from="" '="" usr="" lib="" python2.7="" threading.pyc'=""> ignored process[multisensesl/camera/stereoproc-12]: started with pid [21039] Error [ModelDatabase.cc:404] Unable to download model[model://drcvehicle] Error [ModelDatabase.cc:404] Unable to download model[model://drcvehicle] Error [parser.cc:544] Unable to find uri[model://drcvehicle] Error [ModelDatabase.cc:404] Unable to download model[model://vrcfirehoselong] Error [ModelDatabase.cc:404] Unable to download model[model://vrcfirehoselong] Error [parser.cc:544] Unable to find uri[model://vrcfirehoselong] Error [ModelDatabase.cc:404] Unable to download model[model://vrcstandpipe] Error [ModelDatabase.cc:404] Unable to download model[model://vrcstandpipe] Error [parser.cc:544] Unable to find uri[model://vrcstandpipe] Error [ModelDatabase.cc:404] Unable to download model[model://vrcvalve] Error [ModelDatabase.cc ... (more)

2015-10-31 12:12:26 -0500 marked best answer Using DRC vehicle commands in version 2.5

I built a self driving vehicle using version 2.2 by following the tutorial here:

http://gazebosim.org/wiki/Tutorials/d...PluginDRC_Vehicle

But after upgrading to 2.5, my code won't run anymore. I don't want to downgrade again since some of my other programs run on 2.5, so I'd rather just modify my existing vehicle driver to work for 2.5. What can I use to manipulate the drc vehicle in version 2.5?

2015-05-15 05:30:06 -0500 received badge  Notable Question (source)
2014-05-28 08:29:49 -0500 received badge  Notable Question (source)
2014-05-28 08:29:49 -0500 received badge  Famous Question (source)
2014-04-28 15:48:52 -0500 received badge  Famous Question (source)
2014-03-06 07:02:24 -0500 received badge  Notable Question (source)
2014-03-06 07:02:24 -0500 received badge  Famous Question (source)
2013-11-11 02:07:21 -0500 received badge  Notable Question (source)
2013-11-07 16:15:59 -0500 received badge  Popular Question (source)
2013-11-01 04:29:55 -0500 received badge  Famous Question (source)
2013-10-30 21:41:47 -0500 received badge  Editor (source)
2013-10-29 22:18:31 -0500 answered a question ROS python control for drcsim2.5

Issue has been resolved. Several dependencies were missing because I unpacked directly from the source for a specific version.

2013-10-29 22:15:30 -0500 commented answer Rospython script crashing/unable to downgrade

Issue resolved, downloaded directly from site instead and used the terminal to unpack it.

2013-10-29 22:14:10 -0500 received badge  Popular Question (source)
2013-10-29 22:11:46 -0500 asked a question Keep altas robot from falling while turning in place

I've designed a python script that will allow the atlas robot in the drc simulator to walk by keyboard input.

However there is a flaw in turning on a point (input z/c), whenever it finishes it ends up leaning back and collapsing.

Any ideas on how to correct this? My first though is to lean forward, but I have no idea how to do that. The script is attached below to test.

qt1.py

2013-10-04 10:44:43 -0500 received badge  Popular Question (source)
2013-09-30 19:14:16 -0500 commented answer libbullet not installed
2013-09-30 03:19:51 -0500 commented question libbullet not installed

Just to clarify. sudo apt-get install libbullet-dev did not work.

2013-09-27 20:55:01 -0500 commented answer libbullet not installed

I get this statement: The following packages have unmet dependencies: gazebo : Depends: libbullet but it is not going to be installed libbullet-dev : Depends: libbullet (= 2.81-2ppa1~precise) but it is not going to be installed

2013-09-25 01:26:32 -0500 asked a question libbullet not installed

I'm attempting to do a manual install of a lower version of gazebo for a specific work environment.

Since I was working on a blank Ubuntu OS that never had gazebo installed. I first used sudo apt-get install gazebo,then sudo apt-get remove gazebo to keep the dependencies, but not the up-to-date version.

However, when I try to install the package I want, it goes like this:

sudo dpkg -i gazebo1.7.3-1~preciseamd64.deb Selecting previously unselected package gazebo. (Reading database ... 188459 files and directories currently installed.) Unpacking gazebo (from gazebo1.7.3-1~preciseamd64.deb) ... dpkg: dependency problems prevent configuration of gazebo: gazebo depends on libbullet; however: Package libbullet is not installed. dpkg: error processing gazebo (--install): dependency problems - leaving unconfigured Processing triggers for desktop-file-utils ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for gnome-menus ... Errors were encountered while processing: gazebo

Apparently, there is still one dependency that wasn't added. How do I go about installing libbullet?

2013-07-30 01:47:14 -0500 received badge  Student (source)
2013-07-29 14:04:02 -0500 asked a question 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

2013-07-29 14:00:47 -0500 answered a question Unable to install or run rospy

Issue has been resolved. Apparently, latest modifications has changed rospy to rospython, so I can use that to launch my script.

2013-07-22 13:02:39 -0500 commented answer Unable to install or run rospy

Problem is, for some reason, it doesn't include the rospy package when I install it.

2013-07-22 12:59:18 -0500 received badge  Popular Question (source)
2013-07-20 22:03:48 -0500 commented question Unable to install or run rospy

Files were already sourced in the .bashrc files, this is not the issue.

2013-07-18 13:22:13 -0500 asked a question Unable to install or run rospy

I've just installed the latest drcsim. From what I've read, a way to use python scripts is included in the ros package it comes with, rospy.

However, when I try to use rospy, the terminal does not recognize the command, when I searched for it with which rospy, nothing came up.

For some reason, rospy is not be included in the drcsim package, how do I go about installing it?

2013-07-18 13:20:44 -0500 asked a question Unable to use or install rospy

I've just installed the latest drcsim. From what I've read, a way to use python scripts is included in the ros package it comes with, rospy.

However, when I try to use rospy, the terminal does not recognize the command, when I searched for it with which rospy, nothing came up.

For some reason, rospy is not be included in the drcsim package, how do I go about installing it?

2013-07-15 22:41:21 -0500 commented question Using DRC vehicle commands in version 2.5

Well good. That seems to do the trick. Now the only problem that remains is finding out how to get rospy installed for the other script I need to run.

2013-07-14 09:46:49 -0500 commented question Using DRC vehicle commands in version 2.5

what will that do?

2013-07-14 00:55:27 -0500 received badge  Notable Question (source)
2013-07-13 23:52:39 -0500 commented question Using DRC vehicle commands in version 2.5

Just so you know, I think it's the hand brake, when I echoed it before and after the program, it remains the same value of 1.0, but the gas pedal and brake changed to their respective assigned values(i.e. gas pedal 0.0->1.0). The code is still the same on pastebin, so what should I try to get the handbrake working?

2013-07-13 23:14:22 -0500 commented question Using DRC vehicle commands in version 2.5

I've never used echo before, do I use that command before, during, or after running the executable? And do I do it in a new terminal next the one running the program or in the same one? Also, on a side note, does anyone know how to install rospy? Issue right here:https://bitbucket.org/osrf/drcsim/issue/334/unable-to-use-rospy