Gazebo | Ignition | Community
Ask Your Question

Sunil's profile - activity

2018-09-19 13:40:58 -0500 received badge  Taxonomist
2015-03-04 01:51:20 -0500 received badge  Famous Question (source)
2014-12-02 08:43:57 -0500 commented answer Setting acceleration of object using plugins

Hey, We were able to make the object move by using the function AddForce on the link. We used a link pointer to get the link of the box and using AddForce, the object was moved. In the SDF, we put 100 N as the MaxForce for the box but SetLinearAccel was still not able to move accelerate the object.

2014-12-02 08:38:04 -0500 received badge  Notable Question (source)
2014-12-02 05:17:18 -0500 commented answer Setting acceleration of object using plugins

Thanks Nick. I'll try it out.

2014-12-02 05:16:21 -0500 received badge  Popular Question (source)
2014-10-21 11:22:07 -0500 received badge  Editor (source)
2014-10-21 11:21:11 -0500 asked a question Setting acceleration of object using plugins

Hi,

I was going through the Gazebo model plugin tutorials (http://gazebosim.org/tutorials?tut=pluginsmodel&ver=1.9%2B&cat=writeplugin). I was successfully able to set velocity of the object and make it move.

However,without changing anything else, instead of using SetLinearVel, when I used SetLinearAccel, the box did not move at all.

This is the relevant section of my code (all I did was to replace SetLinearVel in the Original code with SetLinearAccel)

public: void OnUpdate(const common::UpdateInfo & /*_info*/)
{
  // Apply a linear acceleration to the model.

  this->model->SetLinearAccel(math::Vector3(1,0,0));
  printf("Acceleration Set\n"); //Just to see whether the function is working (and it did print it)
}

Please help me figure out what the problem is.