Joint::GetType() in Gazebo 1.x
I am porting a Gazebo 0.x plug-in to Gazebo 1.x. In the 0.x version, I had some code like this:
if (joint->GetType() == Joint::HINGE) doSomething();
For the 1.x plug-in, I replaced the code with this:
if (joint->GetType() == Joint::HINGE_JOINT) doSomething();
However, doSomething was never called. I ended up having to use this:
if (joint->GetType() == Joint::JOINT | Joint::HINGE_JOINT) doSomething();
Is plug-in code now supposed to test individual bits of the value returned by Joint::GetType()? For example, should the plug-in now do this:
if (joint->GetType() & Joint::HINGE_JOINT) doSomething();