Please what is the correct way to use AttachStaticModel function?
I am implementing a simple robot behavior where the robot represented as a box picks an object and drops it at a goal location. However, when the robot reaches the object location to pick it, it doesn't pick it.
A simplified version of the task has been attached mp_pick_drop.cc
All it does is to attach the m_litter to this->model and change the pose of the robot. This doesn't work, as the box just stays frozen at initialized pose. Please what am I getting wrong?
I am using gazebo 7
my robot model is a simple box.Robot sdf
object to pick (m_litter) is also a simple red box.object sdf
The world is world sdf
Many thanks in advance. The complete plugin source code is
Can you change <static>0</static> to <static>1</static> in the m_litter sdf model?
Can you change `<static>0</static>` to `<static>1</static>` in the m_litter sdf model?
Can you change the static value from 0 to 1 in the m_litter sdf model?
I set static element to <static>1</static> and it still didn't solve the problem. gazebo -v returns version 7.4.0
Your "OnUpdate" function is called every cycle of simulation. It would be better to call AttachStaticModel only once. This probably won't fix your problem.