moving the cameras




moving the cameras

Postby bridos » Fri 17. Oct 2014, 09:41

Hello, are we allowed/supposed to move the pan tilt camera unit? If so which is the topic responsible for the camera position that we can interact with?
Thank you very much for your time.
bridos
 
Posts: 2
Joined: Fri 17. Oct 2014, 09:39

by Advertising » Fri 17. Oct 2014, 09:41

Advertising
 

Re: moving the cameras

Postby Peter Lehner » Fri 17. Oct 2014, 12:18

bridos wrote:Hello, are we allowed/supposed to move the pan tilt camera unit? If so which is the topic responsible for the camera position that we can interact with?

Yes you are definitely encouraged to move the pan-tilt unit. The pan-tilt unit can be moved like any system joint by specifying the joints with the strings "cam_pan" and "cam_tilt" in the ros movement services (move_along_joint_path, set_servo_target). For more information see the technical annex Sections 2.2.3 and 2.5.2.

Best,
Peter
Peter Lehner
 
Posts: 53
Joined: Fri 27. Jun 2014, 14:33

Re: moving the cameras

Postby bridos » Wed 22. Oct 2014, 11:40

Thank you very much for your time. I have encountered an error while trying to move the camera:
[ERROR] [1413974402.088627696, 5.025000000]: move_along_joint_path: exception caught: Path requrres minimum one step
what am I doing wrong?
bridos
 
Posts: 2
Joined: Fri 17. Oct 2014, 09:39

Re: moving the cameras

Postby Peter Lehner » Wed 22. Oct 2014, 12:35

bridos wrote:I have encountered an error while trying to move the camera:
[ERROR] [1413974402.088627696, 5.025000000]: move_along_joint_path: exception caught: Path requrres minimum one step
what am I doing wrong?

The Exception indicates that the path field which you are passing inside the move_along_joint_path service request is empty (contains no configurations).

Here is a snippet on how you would move the cameras with the python demo system:
Code: Select all
# Create a camera configuration of zero values
camera_configuration = Configuration(q = [0.0] * len(system.cam_joints))
# Create a path (list of configurations) which contains the new configuration
path = [camera_configuration]
# Move the cameras with the newly created path
system.move(path, system.cam_joints)
Peter Lehner
 
Posts: 53
Joined: Fri 27. Jun 2014, 14:33


TAGS

Return to Stage 1 - Simulation

Who is online

No registered users

cron