how to pass integer signal from vrep to ROS
hello ,
i have been trying to pass integer signal (res here is the result of detection 0 or 1 or nil)
res,dist=simReadProximitySensor(noseSensor) simSetIntegerSignal('result signal',res)
but in ros m trying to get the signal by two ways:- ROS services:-
ros::ServiceClient client; vrepcommon::simRosGetIntegerSignal srv; client=node.serviceClient<vrepcommon::simRosGetIntegerSignal>("/vrep/simRosGetIntegerSignal"); srv.request.signalName="res";
No output:- executabl is created but while copying the executable it says "text file busy"
and secondly,i want it to with the help of subscriber and publisher.
can anybody help me here?
Asked by ansin on 2016-03-01 11:04:40 UTC
Comments