Is it possible to convert std_msgs/Int8 to a binary number?
I am currently trying to convert a std_msgs/Int8 messsage that I receive from a topic to a binary number in python.
The way I am currently doing it is by doing this dirty hack.
bin(int(str(data)))
but isn't there any nice way to do this? I mean this is python so something clever should be there...