Gazebo | Ignition | Community
Ask Your Question

wangshanren's profile - activity

2017-04-14 02:25:48 -0500 received badge  Famous Question (source)
2017-04-14 02:25:48 -0500 received badge  Notable Question (source)
2017-02-21 01:38:11 -0500 answered a question How to prevent model from moving itself?

Well,after three days suffering,I finally make it work,I use my own world files not the default one,then I increase the ODE iters from 50 to 5000,the model is stable.Thanks God! Although I don't know the consequences yet,we'll see!

2017-02-21 00:11:24 -0500 received badge  Enthusiast
2017-02-20 17:13:18 -0500 received badge  Popular Question (source)
2017-02-15 21:16:09 -0500 asked a question How to prevent model from moving itself?

I'm using urdf in gazebo to build a walking quadruped robot ,after set the proper inertial (calculated by meshlab followed the tutorials here link text), the model is still moving ,just floating on the ground,acts like someone is pushing it.Also when click my link in gazebo's left panel,some of the bounding box is really wrong. In addition,I just start gazebo without any controller,I found some useful anwsers: link text link text link text link text link text. But none of them fixed my problem.Right now I'm using ROS Indigo with Gazebo 2.x.Here is my urdf files divided into three parts:urdf.xacro, trasmission.xacro and gazebo.xacro.I'v been stuck in this problem for nearly a week.Can anyone help me fix this problem?image descriptionimage descriptionimage descriptionimage description

2016-06-04 06:33:53 -0500 received badge  Famous Question (source)
2016-06-04 06:33:53 -0500 received badge  Notable Question (source)
2016-06-04 06:33:53 -0500 received badge  Popular Question (source)
2016-05-27 02:48:20 -0500 asked a question How to write file using model plugin?

Using coding as following:

public:

void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf) {
    this->model = _parent;
    this->updateConnection = event::Events::ConnectWorldUpdateBegin(
            boost::bind(&ModelPluginTutorial::OnUpdate, this, _1));     
    std::ofstream file("Angle.txt");
    for (int i = 0; i < N; i++) {
        file << position[i] << std::endl;
    }
    file.close();
}

However things turned out unexpected,there are no file generated.who can help me out of this problem?

2016-05-25 02:57:24 -0500 received badge  Famous Question (source)
2016-04-25 01:26:06 -0500 received badge  Notable Question (source)
2016-04-21 22:47:45 -0500 commented question How to publish joint angle using plugins?

Yes,but this morning i found the rosservice gazebo provided,In the response we can get the angle position,Thanks anyway!

2016-04-21 22:44:02 -0500 received badge  Editor (source)
2016-04-21 09:45:08 -0500 received badge  Popular Question (source)
2016-04-20 23:34:50 -0500 answered a question Custom transport message: where do I put the shared library?

I think you can try to edit the GAZEBO_PLUGIN_PATH in .bashrc

2016-04-20 20:34:59 -0500 answered a question How to publish joint angle using plugins?

Okay,the truth is in rosservice that gazebo published,using command below: get_jnt_state_client.call(get_joint_state_srv_msg); q1.push_back(get_joint_state_srv_msg.response.position[0]); Here,the position is the ANGLE !!!

2016-04-20 11:11:22 -0500 answered a question Cannot trust gazebo2.2. Recommended way of using Gazebo with ROS Indigo?

you can try install gazebo7 from source,there is tutorials you can follow,I'm using gazebo7 and ros indigo right now

2016-04-20 11:11:20 -0500 asked a question How to publish joint angle using plugins?

we know that gazebo already publish rostopics and rosservices which contains Joint position ,velocity and efforts.Also we can get joint angle using a model plugin . The question is how to publish it as a rostopic.I'v seen examples about publishing image data using plugin,after editing the plugin,they all have some tags in .world file between <plugin> </plugin>.
However i don't konw how to set my own,so is there some methods i can use or the whole thing is unnecessary?

2016-04-20 10:51:04 -0500 received badge  Organizer (source)