A method for a first (102, 60, 70) and a second Web server (108, 80, 90) located in a first cloud location and a second cloud location being different cloud locations and controlling a robot device across a Web interface in a cloud, the method comprising: - sending (S120, 302) by the first Web server, towards the second Web server located in the second cloud location, a hypertext transfer protocol, HTTP, request for one or more trajectories between a first position and a second position for the robot device, wherein the HTTP request comprises encoded in unified resource location, URL, a workspace of the robot device and a configuration of the robot device; - obtaining (S122, 304) one or more calculated trajectories for the robot device between the first position and a positon that is closer to the second position than the first position, based on the workspace and the configuration of the robot device; - sending (S124, 306), to the first Web server located in the first cloud location, a HTTP response to the HTTP request, wherein the HTTP response comprises said one or more calculated trajectories; - executing (S126, 308), by the first Web server, a trajectory being at least based on said one or more calculated trajectories for the robot device, wherein obtaining said one or more calculated trajectories comprises receiving, by the second Web server, said one or more calculated trajectories as a response to a call for calculation of said one or more trajectories between the first position and the second position, based on the workspace and the configuration of the robot device, wherein the method further comprises storing (S250, S254) said one or more calculated trajectories in a storage at the second cloud location. - sending (S120, 302) by the first Web server, towards the second Web server located in the second cloud location, a hypertext transfer protocol, HTTP, request for one or more trajectories between a first position and a second position for the robot device, wherein the HTTP request comprises encoded in unified resource location, URL, a workspace of the robot device and a configuration of the robot device; - obtaining (S122, 304) one or more calculated trajectories for the robot device between the first position and a positon that is closer to the second position than the first position, based on the workspace and the configuration of the robot device; - sending (S124, 306), to the first Web server located in the first cloud location, a HTTP response to the HTTP request, wherein the HTTP response comprises said one or more calculated trajectories; - executing (S126, 308), by the first Web server, a trajectory being at least based on said one or more calculated trajectories for the robot device, wherein obtaining said one or more calculated trajectories comprises receiving, by the second Web server, said one or more calculated trajectories as a response to a call for calculation of said one or more trajectories between the first position and the second position, based on the workspace and the configuration of the robot device, wherein the method further comprises storing (S250, S254) said one or more calculated trajectories in a storage at the second cloud location.