How can I send an HttpPost request to the drive service (I'm using the generic diff drive) to set the distance and the rotate angle to a specific value?
I wrote my own service and it works properly without using HttpPost.
What actually is happening is that I get the object position from vision service and calculate a distance and an angle between robot and the object (which doesn't give me the right value yet but it's not important now) and then send them ( angle and distance) on the rotateAngle and driveDistance of the generic drive service. What I want to do is that sending them by HTTP POST message.
You can use the System.Net.WebRequest class to perform an HTTP post: