Click here to Skip to main content
15,887,676 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: A server to communicate with a robot Pin
Eddy Vluggen18-Dec-14 0:29
professionalEddy Vluggen18-Dec-14 0:29 
GeneralRe: A server to communicate with a robot Pin
cocoonwls18-Dec-14 13:49
cocoonwls18-Dec-14 13:49 
GeneralRe: A server to communicate with a robot Pin
Eddy Vluggen19-Dec-14 5:32
professionalEddy Vluggen19-Dec-14 5:32 
GeneralRe: A server to communicate with a robot Pin
cocoonwls21-Dec-14 19:04
cocoonwls21-Dec-14 19:04 
GeneralRe: A server to communicate with a robot Pin
Eddy Vluggen22-Dec-14 2:59
professionalEddy Vluggen22-Dec-14 2:59 
GeneralRe: A server to communicate with a robot Pin
cocoonwls22-Dec-14 14:45
cocoonwls22-Dec-14 14:45 
GeneralRe: A server to communicate with a robot Pin
Eddy Vluggen23-Dec-14 7:48
professionalEddy Vluggen23-Dec-14 7:48 
AnswerRe: A server to communicate with a robot Pin
Keld Ølykke4-Jan-15 12:42
Keld Ølykke4-Jan-15 12:42 
Hi,

Since a robot is a real-time system, I wouldn't want to mix it directly into a web server.

I would make an application in C# or Java with a dedicated socket for communication with the robot. This application can continuously communicate with the robot - read states and send commands.

When that is in place, you can do use a database or the file system to pass data to and from a webserver. In this way you have the application in control of when to read a command from a client, when to send the command to the robot and when to sample the states of the robot.

In a typical web servers everything is request based. A request is initiated by the client and your code is basically a method call that has to return as fast as possible. It might be easy at start, but it is a poor way to monitor a robot. As an example it becomes a difficult task to track the robot and document where the robot was and then deduce why it did as it did.

I would let a standalone application dump the robot's state to a file system periodically and let it check the file system for the next command to send. In this way - if it is made flexible enough - you can have a folder with commands that takes your robot for a spin and produces a folder with its monitored states. If it fails, you can redo the experiment after changing what not on the robot, and you will have all data stored in the file system for your report.

Afterwards you can make a web server page that reads/writes the file system.

Kind Regards,
Keld Ølykke
AnswerRe: A server to communicate with a robot Pin
manoranjan10-Jan-15 11:22
manoranjan10-Jan-15 11:22 
QuestionNever use pure built in types Pin
D4rkTrick11-Dec-14 6:23
professionalD4rkTrick11-Dec-14 6:23 
AnswerRe: Never use pure built in types Pin
Richard MacCutchan11-Dec-14 6:43
mveRichard MacCutchan11-Dec-14 6:43 
GeneralRe: Never use pure built in types Pin
D4rkTrick21-Dec-14 8:18
professionalD4rkTrick21-Dec-14 8:18 
AnswerRe: Never use pure built in types Pin
den2k8811-Dec-14 7:37
professionalden2k8811-Dec-14 7:37 
GeneralRe: Never use pure built in types Pin
jschell12-Dec-14 12:29
jschell12-Dec-14 12:29 
GeneralRe: Never use pure built in types Pin
den2k8814-Dec-14 0:09
professionalden2k8814-Dec-14 0:09 
GeneralRe: Never use pure built in types Pin
jschell16-Dec-14 12:37
jschell16-Dec-14 12:37 
AnswerRe: Never use pure built in types Pin
jschell12-Dec-14 12:26
jschell12-Dec-14 12:26 
GeneralRe: Never use pure built in types Pin
D4rkTrick21-Dec-14 8:17
professionalD4rkTrick21-Dec-14 8:17 
QuestionHow to avoid backend stored procedures Pin
nstk8-Dec-14 21:24
nstk8-Dec-14 21:24 
JokeRe: How to avoid backend stored procedures Pin
Brady Kelly12-Dec-14 5:52
Brady Kelly12-Dec-14 5:52 
AnswerRe: How to avoid backend stored procedures Pin
Eddy Vluggen12-Dec-14 7:27
professionalEddy Vluggen12-Dec-14 7:27 
AnswerRe: How to avoid backend stored procedures Pin
Dominic Burford23-Dec-14 1:35
professionalDominic Burford23-Dec-14 1:35 
QuestionRearchitecting BackgroundWorker based to Task based? Pin
Matt T Heffron17-Nov-14 12:49
professionalMatt T Heffron17-Nov-14 12:49 
AnswerRe: Rearchitecting BackgroundWorker based to Task based? Pin
Richard Deeming18-Nov-14 2:45
mveRichard Deeming18-Nov-14 2:45 
AnswerRe: Rearchitecting BackgroundWorker based to Task based? Pin
Gerry Schmitz18-Nov-14 7:00
mveGerry Schmitz18-Nov-14 7:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.