Apply motor to only one body of a joint?

Idea: I want a wheel with a stick attached to it by a joint. Then I want to move the wheel back and forth in order to balance the stick, keeping it from falling to the ground.

At first I tried a revolute joint between the wheel and the stick. Then I used SetLinearVelocity to the wheel body which worked ok. Then I thought I might try a motor on the joint, but it seems to affect both bodies, removing the challenge of balancing the stick. Is there some way to apply the motor to only the wheel? Perhaps I need another type of joint?

Thanks!
No, that is not possible without some customization of the engine internals. How about putting a fixed rotation body between the two bodies, so that they are not directly connected.
You might find this interesting, since it does exactly what you are talking about and has source code: https://www.youtube.com/watch?v=LH0pRDIeZB8
Thank you very much! I will take a look =)

Original thread: https://box2d.org/forum/viewtopic.php?t=9765