ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to Turn a Camera Down on Stageros

asked 2018-11-29 10:52:17 -0600

vivian.kalempa gravatar image

updated 2018-11-29 16:13:21 -0600

Hi .. I have the following robot:

define roomba_cam position
(
  size [0.33 0.33 0.1]

  # this block approximates the circular shape of a Roomba
  block( 
    points 16
    point[0] [ 0.225 0.000 ]
    point[1] [ 0.208 0.086 ]
    point[2] [ 0.159 0.159 ]
    point[3] [ 0.086 0.208 ]
    point[4] [ 0.000 0.225 ]
    point[5] [ -0.086 0.208 ]
    point[6] [ -0.159 0.159 ]
    point[7] [ -0.208 0.086 ]
    point[8] [ -0.225 0.000 ]
    point[9] [ -0.208 -0.086 ]
    point[10] [ -0.159 -0.159 ]
    point[11] [ -0.086 -0.208 ]
    point[12] [ -0.000 -0.225 ]
    point[13] [ 0.086 -0.208 ]
    point[14] [ 0.159 -0.159 ]
    point[15] [ 0.208 -0.086 ]
    z [0 0.1]
  )

  localization "gps"
      localization_origin [0 0 0 0]

  color "gray50"

  camera 
  ( 

    origin [0 0 -0.11 0]

    # laser properties 
    resolution [ 1280 720 ] 
    range [ 0.2 9.0 ] 
    fov [ 70.0 40.0 ] 
    pantilt [ 0.0 0.0 ] 

    # model properties 
    size [ 0.1 0.07 0.05 ] 
    color "black" 
    watts 100.0 # TODO find watts for sony pan-tilt camera 
  ) 
)

I put the camera underneath the robot because I want to place it at the top of the simulation and I need the camera to be facing down, but it is facing forward. Can anyone help me how to do it to turn it down?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-12-04 10:30:48 -0600

vivian.kalempa gravatar image

Hello, it worked with:

pantilt [0.0 90.0]

Thank you very much for your help.

edit flag offensive delete link more
0

answered 2018-11-29 16:16:57 -0600

The description of the camera sensor definition can be found here, to clear this up for you. No idea why there is a laser commend above it, but that's a different story.

The pan tilt parameter is the one you're it defines the azimuth and elevations angles in degrees. so if you set it as shown below it should tilt your camera down by 90 degrees.

pantilt [ 0.0 -90.0 ]

Hope this helps.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-11-29 10:52:17 -0600

Seen: 164 times

Last updated: Dec 04 '18