
Darathian
USA
Asked
— Edited

Is it possible to enable and disable for example the color tracking check box in the camera control in ARC via the SDK while conected via the telnet server?
Thanks
@DJ Sures This really helps fill in the blanks and will give me what I need to proceed.
Thanks so much.
No problem
I separated some of the functionality into separate methods for you to get an idea of what is going on...
Firstly, I use the System.Net.Sockets.TcpClient instead of the EZ_B one. This is because the EZ_B one is made specifically for Shell prompts. The System.Net.Sockets.TcpClient is much more versatile for your needs.
In the connection method, I added code to allow you to specify the connection timeout. Without this code, simply using TcpClient.Connect() will timeout for 10 seconds or something ridiculous. My example allows you to specify the Timeout in the TimeSpan.FromSeconds()
Also, the TCP NoDelay will increase the transfer speed. Without NoDelay, the tcp packets will have a minimum response speed of something like 20ms - which is way too slow
Send Command will send the command and send the response to the Debug Log window.
The SendCommand() uses ClearInputBuffer() and ReadReponseLine(). The details are specified in their respective summary comments.
Finally, to send a command - simply send the EZ-Script syntax and voila
Let me just say that the quality and detail of your response blew away my expectations. If this is the passion you put into everything the revolution has a very rosy feature.
Based on this interaction I firmly believe I made the right choice in going with EZ-Robot in my feature robotic projects.
The fact that the EZB method is made specifically for Shell prompts at least explains why my send code did not work but my socket read did.
Thanks again.
By the way.
The reason for all of this is that I am going to try and write an application that sits between the roborealm AVM navigation module and ARC. I will pull values from the module, provide them to ARC and use EZ-Script to make the robot do the movements. That way I might be able to have the robot learn a path via the webcam and then navigate it again autonomously.
Should be a nice learning experience. Now I only need the EZ-B
@JD Sures
Just so you know your time spent on providing the information was not wasted I have successfully integrated and adjusted your code examples to pull the information I needed from Roborealm into ARC for use in EZ-Script.
Thanks again for your help
Really? That's excellent! I'm looking forward to seeing it
Any chance you could share a video of your project when you're ready?
@DJ Sures At this point I can read the variable values from roborealm via their XML based API and I can get the variables into ARC for use in EZ-Script.
The next step requires me to having the EZB since I need to find a way to get the video from the robot's camera streamed into roborealm so the AVM module can do its job on the video stream and report back the movement variables.
Assuming I can get the whole thing working I have no issue posting what I did but don't want to get anyone's hopes up until I actually have the robot navigate using roborealm AVM navigate mode.
If you take a look at roborealm AVM you will see what it is I am trying to do especially the navigate mode.
Plus it's a nice way to learn c# even if the whole idea falls flat on its face in the end
Another project I was thinking of using your code examples for is having six doing a dance and having it send variables to another arduino based robot I have using xbee's and coordinating their dancing.