Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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>/executable but this executable is made built it /ros_ws/build/<pkg>/executable. 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.

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>/executable /ros_ws/devel/lib/<pkg> but this executable is made built it /ros_ws/build/<pkg>/executable. 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. advance.