Launching a Wiringpi cpp node with roslaunch
I have a node that talks to motor driver on a raspberry pi working with wiringpi lib, normally executable of the nodes are made in /ros_ws/devel/lib/<pkg> but this executable is built in /ros_ws/build/<pkg>. the node does not work normally with rosrun, I have to execute it with ./wheels (wheels is the name of the executable), also root permission is needed to run the executable.
Now I have to run this executable with roslaunch and also accommodate root access with it. is there a way to do so? if not then what are the other ways I can have to tackle this problems. I could not find any related questions about this. Please help me with this and try to give a step by step answer so that it will help others as well. thanks in advance.