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

roslaunch jaco_on_table jaco_on_table_gazebo_controlled.launch miss use or malfunction #11

Closed
wonwon0 opened this issue May 17, 2017 · 15 comments

Comments

@wonwon0
Copy link

wonwon0 commented May 17, 2017

Hi,

Thank you for your work, it is very help full!

I followed your tutorial on both Kinetic and Jade and encountered the same issue.

When I call

$ roslaunch jaco_on_table jaco_on_table_gazebo.launch

gazebo launches with the message:

auto-starting new master
process[master]: started with pid [75742]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 660eaf7a-3b3d-11e7-be79-000c29df71f8
process[rosout-1]: started with pid [75755]
started core service [/rosout]
process[gazebo-2]: started with pid [75765]
process[gazebo_gui-3]: started with pid [75775]
process[urdf_spawner-4]: started with pid [75785]
[ INFO] [1495052056.121886229]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1495052056.122879854]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[ INFO] [1495052056.472461454, 0.022000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1495052056.544991599, 0.081000000]: Physics dynamic reconfigure ready.
[urdf_spawner-4] process has finished cleanly
log file: /home/phil/.ros/log/660eaf7a-3b3d-11e7-be79-000c29df71f8/urdf_spawner-4*.log

One odd thing compared to your tutorial is that the robot doesn't have the same colours as in your tutorial (all white on Jade and all black on Kinetic), but it is not the main issue.

When I go on with the
$ roslaunch jaco_on_table jaco_on_table_gazebo_controlled.launch

which displays the message:

auto-starting new master
process[master]: started with pid [76372]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 016e02cc-3b3e-11e7-9ff4-000c29df71f8
process[rosout-1]: started with pid [76385]
started core service [/rosout]
process[gazebo-2]: started with pid [76401]
process[gazebo_gui-3]: started with pid [76408]
process[urdf_spawner-4]: started with pid [76419]
process[robot_state_publisher-5]: started with pid [76420]
[ INFO] [1495052316.902714999]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1495052316.903913344]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[ INFO] [1495052317.337042070, 0.022000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1495052317.638801684, 0.112000000]: Physics dynamic reconfigure ready.
[urdf_spawner-4] process has finished cleanly
log file: /home/phil/.ros/log/016e02cc-3b3e-11e7-9ff4-000c29df71f8/urdf_spawner-4*.log

The robots appears already collapsed.

It is to be noted that I had to implement the fix around line 125 in the GazeboJointControl.cpp

physics::JointControllerPtr _modelJointController = _parent->GetJointController(); (out of scope)

in order to run catkin_make on the project.

@JenniferBuehler
Copy link
Owner

Hi,

thanks for reporting this. I haven't tried this code with kinetic yet, but I was going to do this in the next few days, or latest next week. I will have to test and apply the fix in the joint controller as well, which has been hanging around for a while. I'm just pretty busy so didn't get around to it yet... I can look into your issue when I finally do it in the next days as well.

So the collapsing of the robot happens both in Jade and in Kinetic? And which version of Gazebo are you using - the same in both Jade and Kinetic?

The colour issue could mean that the material ("black", I think) is not found. Again, this could be related to that you are using a different Gazebo version. I will try to test it with the same version you have.

Cheers
Jenny

@wonwon0
Copy link
Author

wonwon0 commented May 17, 2017

Thank you for the (very quick) answer!

I use gazebo 7 on kinetic and gazebo 5 on jade.

The collapsing happens on both setups. The colors are different on either gazebo 5 or 7 (respectively white and black).

I forgot to mention that I also had to set -std=c++11 in order to compile the project on Kinetic (ubuntu 16.04), while I didn't do it on Jade (ubuntu 14.04).

Once again, thank you for your help!

Philippe

@JenniferBuehler
Copy link
Owner

Hi Philippe,

Ok, thanks for the info. I will let you know here as soon as I have started looking into it.

Jenny

@JenniferBuehler
Copy link
Owner

JenniferBuehler commented May 21, 2017

I've applied some changes to fix the issue with _modelJointController (which you probably got from joint-control-pkgs issue #2), in the repository joint_control_pkgs. Your plugin probably crashed because you may have forgotten to check (_modelJointController!=nullptr) later when it is used?

Anyway, as I described in the other issue, this was not the correct solution. Can you pull joint-control-pkgs again, recompile and see if you still have the issue now?

I'm onto the colour issue next, I'm getting the same problem.

@wonwon0
Copy link
Author

wonwon0 commented May 21, 2017

Ho wow, this is really quick! I'll check this out tomorrow (in about 10 hours) when I'm able to access my computer.

JenniferBuehler added a commit that referenced this issue May 21, 2017
@JenniferBuehler
Copy link
Owner

JenniferBuehler commented May 21, 2017

The colour was a problem I actually encountered before. Unfortunately "wildcards" don't work for <gazebo> tags, at least not in newer versions...

I've changed it to contain the materials for the links explicitly. So if you also pull a new version of this repo now, it should (hopefully) all work.

Let me know if not, or if you run into any other issues.

Cheers
Jenny

@cangjiaxaun
Copy link

Hi, Jennifer I start to work with the jaco-gazebo simulation on kinetic since last week. I think I meet the same problem. My gazebo version is 7.

@JenniferBuehler
Copy link
Owner

Did you pull the newest version? It should be fixed now.

@cangjiaxaun
Copy link

The newest version works! But on my system I should manually set the GAZEBO_PLUGIN_PATH to ~/catkin_ws/devel/lib to let gazebo know where to find the plugin. Thank you Jenny!

@JenniferBuehler
Copy link
Owner

Great that it works... strange about the plugin path, I've never had to do this, but it makes sense... Anyway, good that it works!

@JenniferBuehler
Copy link
Owner

@wonwon0 Does it work now for you as well, with the updated version of joint-control-pkgs? If yes, you may close the issue :)

@wonwon0
Copy link
Author

wonwon0 commented May 22, 2017

I'm testing it right now, colors are good but the arm is still collapsed. Maybe it's an error on my side. I haven't tested it yet on jade, only kinetic.

EDIT: I tried to make it run, but i failed. Could it be because I'm running Kinetic on a Vm?

@JenniferBuehler
Copy link
Owner

Hmmm weird that it collapses, I'm using Kinetic too and it works.

Can you send me the command line output please?

I never tried to run ROS/Gazebo on VMs, have you had other issues with it?

@wonwon0
Copy link
Author

wonwon0 commented May 22, 2017

Allright! I made it run on a conventionnal ubuntu 16.04 install (not a VM). Every thing is fine. Really nice!

I havent been able to circle out the cause of the bug on my vm install.

I'll close this issue and open an other one if i can't manage to figure it out by myself.

In either case, I'll keep you updated and, if you want and I manage to install it on my vm, write a small tutorial to install it if the solution to do so is a little funky.

Thanks a lot for your help!

Philippe

@wonwon0 wonwon0 closed this as completed May 22, 2017
@JenniferBuehler
Copy link
Owner

Great! Thanks for letting me know. Sure, if you manage to get it running in a VM, I'd be interested which changes are required to make it work :) And tutorials are always great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants