Git Product home page Git Product logo

axis_camera's Introduction

axis_camera

Overview

This ROS_ package provides an Axis network camera driver, written in Python.

ROS wiki documentation: axis_camera.

This driver is under active development. Its ROS interfaces are relatively stable, but may still change.

Nodes

  • axis_node.py: Version 2 of the axis.py node. It works based on profiles + params. It is necessary to have the profiles defined. Sets up axis camera and ptz server.

Configuration

If we want to use camera_info publication it is important that configuration .yaml has the same resolution than the resolution set in the camera (using or not profiles)

How to set up your axis camera

Note: if you are using AXIS M5054 you can use p5534 configuration files.

1. Change your model name on launch file

In launch/axis.launch:

<arg name="camera_model" default="axis_model"/>
<param name="camera_model" value="axis_model"/>

2. Create parameter files for your camera model

  • config/axis_model_ptz_config.yaml: ptz control parameters
  • data/axis_model.ayml: camera parameters

Testing your camera

There are three different launch files in this package.

Note: if you encounter this error while trying to run any of the following commands just type export ROS_NAMESPACE=axis in your console.

  • For running the camera control node and starting the live view GUI:
roslaunch axis_camera start_axis_and_video.launch
  • For running only the camera control node:
roslaunch axis_camera axis.launch
  • For running only the live view GUI (camera control node must be running):
roslaunch axis_camera image_view.launch
  • You can also run image_view directly (setting the image topic to /axis/image_color):
rosrun image_view image_view image:=/axis/image_color

Controlling your camera

You can send your camera PTZ commands via the /axis/axis_camera/ptz_command topic:

rostopic pub /axis/axis_camera/ptz_command robotnik_msgs/ptz "pan: 0.5
tilt: -1.0
zoom: 2.0
relative: false" 
  • params pan and tilt as float (radians)
  • param zoom as float (proportional zoom between 0 and 9999)
  • param relative as bool (increases the current pan,tilt,zoom relative to the current values)

axis_camera's People

Contributors

acasadorobotnik avatar iportolesrb avatar joserobotnik avatar marbosjo avatar romanrobotnik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.