Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

implement webcam view into webots

3D Humanoid robot simulation, simulated robot physics, 3D models, Humanoid robot Art
6 postsPage 1 of 1
6 postsPage 1 of 1

implement webcam view into webots

Post by sobrinizam » Wed Jul 18, 2012 3:00 pm

Post by sobrinizam
Wed Jul 18, 2012 3:00 pm

hello.

i am currently doing on darwin-op using webots simulator. how to integrate webcam view into the darwin-op in webots simulator.

thanks.
hello.

i am currently doing on darwin-op using webots simulator. how to integrate webcam view into the darwin-op in webots simulator.

thanks.
sobrinizam
Newbie
Newbie
Posts: 4
Joined: Wed Jul 18, 2012 2:55 pm

DARwIn-OP model in Webots

Post by Olivier » Thu Jul 19, 2012 10:44 am

Post by Olivier
Thu Jul 19, 2012 10:44 am

Hi,

The DARwIn-OP model provided with the latest version of Webots (6.4.4) already include a camera device which allows you to retrieve the images taken from the robot point of view (and do whatever image processing you need). Can't you use it? Or maybe you mean something else with "webcam"?

-Olivier
Hi,

The DARwIn-OP model provided with the latest version of Webots (6.4.4) already include a camera device which allows you to retrieve the images taken from the robot point of view (and do whatever image processing you need). Can't you use it? Or maybe you mean something else with "webcam"?

-Olivier
Olivier
Newbie
Newbie
User avatar
Posts: 3
Joined: Sun Dec 10, 2006 1:00 am

Post by sobrinizam » Thu Jul 19, 2012 1:50 pm

Post by sobrinizam
Thu Jul 19, 2012 1:50 pm

i didn't have the robot yet, that's why i am trying to use the webcam instead of the robot's camera.

thanks.
i didn't have the robot yet, that's why i am trying to use the webcam instead of the robot's camera.

thanks.
sobrinizam
Newbie
Newbie
Posts: 4
Joined: Wed Jul 18, 2012 2:55 pm

Post by Olivier » Thu Jul 19, 2012 4:23 pm

Post by Olivier
Thu Jul 19, 2012 4:23 pm

Oh, you meant a real webcam. Then, it's up to you to interface it with a Webots controller using whatever language you are comfortable with (C, C++, Java, Python, Matlab, etc.). But you can also use the "virtual" camera included in the Webots model of DARwIn-OP.

-Olivier
Oh, you meant a real webcam. Then, it's up to you to interface it with a Webots controller using whatever language you are comfortable with (C, C++, Java, Python, Matlab, etc.). But you can also use the "virtual" camera included in the Webots model of DARwIn-OP.

-Olivier
Olivier
Newbie
Newbie
User avatar
Posts: 3
Joined: Sun Dec 10, 2006 1:00 am

Post by sobrinizam » Tue Jul 24, 2012 5:41 am

Post by sobrinizam
Tue Jul 24, 2012 5:41 am

i got problem in implementing matlab code to initialize the virtual camera.. do you have some simple code
i got problem in implementing matlab code to initialize the virtual camera.. do you have some simple code
sobrinizam
Newbie
Newbie
Posts: 4
Joined: Wed Jul 18, 2012 2:55 pm

Post by Olivier » Thu Aug 09, 2012 8:56 am

Post by Olivier
Thu Aug 09, 2012 8:56 am

sobrinizam wrote:i got problem in implementing matlab code to initialize the virtual camera.. do you have some simple code


I would recommend you to have a look at the matlab example included in the following folder:

webots/projects/languages/matlab/controllers/matlab/matlab.n

which uses a Webots camera from Matlab.

Let me know if that helps.

-Olivier
sobrinizam wrote:i got problem in implementing matlab code to initialize the virtual camera.. do you have some simple code


I would recommend you to have a look at the matlab example included in the following folder:

webots/projects/languages/matlab/controllers/matlab/matlab.n

which uses a Webots camera from Matlab.

Let me know if that helps.

-Olivier
Olivier
Newbie
Newbie
User avatar
Posts: 3
Joined: Sun Dec 10, 2006 1:00 am


6 postsPage 1 of 1
6 postsPage 1 of 1