Repository Summary

Checkout URI https://github.com/ros-drivers/phidgets_drivers.git
VCS Type git
VCS Version dashing
Last Updated 2019-11-14
Dev Status MAINTAINED
Released UNRELEASED

README

Phidgets drivers for ROS 2

Overview

Drivers for various Phidgets devices. This package includes:

Concerning Phidgets

Phidgets are typically plugged into USB on a host computer (though there are wireless ones, they will be ignored here). In the "old-style" Phidgets, there was one USB plug per device. So if you have a temperature Phidget, and an accelerometer Phidget, they take up 2 USB plugs on the computer. These "old-style" Phidgets are still around and still available for sale, but most of the new development and sensors are in "new-style" Phidgets. In "new-style" Phidgets, a VINT hub is connected to the host computer via USB, and then the other Phidgets connect to a port on the VINT hub. Most of the "old-style" Phidget functions (temperature, acclerometer, etc.) are also available as "new-style" Phidgets, and most new functionality is only available as VINT devices.

Identifying Phidgets devices

All Phidgets that plug directly into a USB port (including the VINT hub) have a unique serial number. This serial number is printed on the back of the device, and is also printed out by the phidgets drivers when they start up. The serial number can be specified as a parameter when the driver starts up; otherwise, the default is to connect to any Phidgets that are of the correct type at startup.

Uniquely identifying a "new-style" Phidget also requires one more piece of information, which is the VINT hub port it is connected to. This also must be provided as a parameter when starting up the driver.

Note that there are "smart" and "simple" VINT hub devices. "Smart" devices have their own microcontrollers on board and use a protocol to communicate with the VINT hub.

"Simple" VINT hub devices don't have a microcontroller. They just provide or accept a voltage from the VINT hub port (which can act as a digital input, digital output, or analog inputs).

Whether the Phidget is "smart" or "simple" can be determined by looking at the "Connection and Compatibility" portion of the webpage for the individual sensor. If the device is "smart", then "is_hub_port_device" must be set to "false" when launching a driver; if the device is "simple", then "is_hub_port_device" must be set to "true".

Installing

From source

Make sure you have ROS 2 Dashing installed: https://index.ros.org/doc/ros2/Installation/Dashing/

Also make sure you have git installed:

sudo apt-get install git-core

Change directory to the source folder of your colcon workspace. If, for instance, your workspace is ~/colcon_ws, make sure there is a src/ folder within it, then execute:

cd ~/colcon_ws/src

Download the metapackage from the github repository ( may be dashing, ...)

git clone -b <ros_distro> https://github.com/ros-drivers/phidgets_drivers.git

Install dependencies using rosdep:

rosdep install phidgets_drivers

Alternatively, if rosdep does not work, install the following packages:

sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev

Compile your colcon workspace:

cd ~/colcon_ws
colcon build

Udev rules setup

Note: The following steps are only required when installing the package from source. When installing a binary debian package of phidgets_api >= 0.7.8, the udev rules are set up automatically.

Make sure your colcon workspace has been successfully compiled. To set up the udev rules for the Phidgets USB devices, run the following commands:

sudo cp ~/colcon_ws/src/phidgets_drivers/phidgets_api/debian/udev /etc/udev/rules.d/99-phidgets.rules
sudo udevadm control --reload-rules

Afterwards, disconnect the USB cable and plug it in again (or run sudo udevadm trigger).

Developing

To check formatting after modifying source code:

python3 clang-check-style.py

To reformat source code:

find . -name '*.h' -or -name '*.hpp' -or -name '*.cpp' | xargs clang-format-6.0 -i -style=file $1

Repository Summary

Checkout URI https://github.com/ros-drivers/phidgets_drivers.git
VCS Type git
VCS Version melodic
Last Updated 2019-09-05
Dev Status MAINTAINED
Released RELEASED

Packages

README

Phidgets drivers for ROS

Overview

Drivers for the Phidgets devices. This Catkin metapackage includes:

  • phidgets_api: a package which downloads and builds the Phidgets C API from phidgets.com (as an external project). It also implements a C++ wrapper for the C API, providing a base Phidget class and various inherited classes for different phidget devices.

  • ROS nodes exposing the functionality of specific phidgets devices using:

    • phidgets_imu
    • phidgets_high_speed_encoder
    • phidgets_ik

Installing

From source

Make sure you have a working catkin workspace, as described at: http://www.ros.org/wiki/catkin/Tutorials/create_a_workspace

Also make sure you have git installed:

sudo apt-get install git-core

Change directory to the source folder of your catkin workspace. If, for instance, your workspace is ~/catkin_ws, make sure there is a src/ folder within it, then execute:

cd ~/catkin_ws/src

Download the metapackage from the github repository ( may be groovy, hydro, indigo...):

git clone -b <ros_distro> https://github.com/ros-drivers/phidgets_drivers.git

Install dependencies using rosdep:

rosdep install phidgets_drivers

Alternatively, if rosdep does not work, install the following packages:

sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev

Compile your catkin workspace:

cd ~/catkin_ws
catkin_make

Udev rules setup

Note: The following steps are only required when installing the package from source. When installing a binary debian package of phidgets_api >= 0.7.8, the udev rules are set up automatically.

Make sure your catkin workspace has been successfully compiled. To set up the udev rules for the Phidgets USB devices, run the following commands:

roscd phidgets_api
sudo cp debian/udev /etc/udev/rules.d/99-phidgets.rules
sudo udevadm control --reload-rules

Afterwards, disconnect the USB cable and plug it in again (or run sudo udevadm trigger).

For documentation regarding nodes, topics, etc:

http://ros.org/wiki/phidgets_drivers

Repository Summary

Checkout URI https://github.com/ros-drivers/phidgets_drivers.git
VCS Type git
VCS Version kinetic
Last Updated 2019-09-05
Dev Status MAINTAINED
Released RELEASED

Packages

README

Phidgets drivers for ROS

Overview

Drivers for the Phidgets devices. This Catkin metapackage includes:

  • phidgets_api: a package which downloads and builds the Phidgets C API from phidgets.com (as an external project). It also implements a C++ wrapper for the C API, providing a base Phidget class and various inherited classes for different phidget devices.

  • ROS nodes exposing the functionality of specific phidgets devices using:

    • phidgets_imu
    • phidgets_high_speed_encoder
    • phidgets_ik

Installing

From source

Make sure you have a working catkin workspace, as described at: http://www.ros.org/wiki/catkin/Tutorials/create_a_workspace

Also make sure you have git installed:

sudo apt-get install git-core

Change directory to the source folder of your catkin workspace. If, for instance, your workspace is ~/catkin_ws, make sure there is a src/ folder within it, then execute:

cd ~/catkin_ws/src

Download the metapackage from the github repository ( may be groovy, hydro, indigo...):

git clone -b <ros_distro> https://github.com/ros-drivers/phidgets_drivers.git

Install dependencies using rosdep:

rosdep install phidgets_drivers

Alternatively, if rosdep does not work, install the following packages:

sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev

Compile your catkin workspace:

cd ~/catkin_ws
catkin_make

Udev rules setup

Note: The following steps are only required when installing the package from source. When installing a binary debian package of phidgets_api >= 0.7.8, the udev rules are set up automatically.

Make sure your catkin workspace has been successfully compiled. To set up the udev rules for the Phidgets USB devices, run the following commands:

roscd phidgets_api
sudo cp debian/udev /etc/udev/rules.d/99-phidgets.rules
sudo udevadm control --reload-rules

Afterwards, disconnect the USB cable and plug it in again (or run sudo udevadm trigger).

For documentation regarding nodes, topics, etc:

http://ros.org/wiki/phidgets_drivers

Repository Summary

Checkout URI https://github.com/ros-drivers/phidgets_drivers.git
VCS Type git
VCS Version lunar
Last Updated 2019-05-06
Dev Status MAINTAINED
Released RELEASED

Packages

README

Phidgets drivers for ROS

Overview

Drivers for the Phidgets devices. This Catkin metapackage includes:

  • phidgets_api: a package which downloads and builds the Phidgets C API from phidgets.com (as an external project). It also implements a C++ wrapper for the C API, providing a base Phidget class and various inherited classes for different phidget devices.

  • ROS nodes exposing the functionality of specific phidgets devices using:

    • phidgets_imu
    • phidgets_high_speed_encoder
    • phidgets_ik

Installing

From source

Make sure you have a working catkin workspace, as described at: http://www.ros.org/wiki/catkin/Tutorials/create_a_workspace

Also make sure you have git installed:

sudo apt-get install git-core

Change directory to the source folder of your catkin workspace. If, for instance, your workspace is ~/catkin_ws, make sure there is a src/ folder within it, then execute:

cd ~/catkin_ws/src

Download the metapackage from the github repository ( may be groovy, hydro, indigo...):

git clone -b <ros_distro> https://github.com/ros-drivers/phidgets_drivers.git

Install dependencies using rosdep:

rosdep install phidgets_drivers

Alternatively, if rosdep does not work, install the following packages:

sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev

Compile your catkin workspace:

cd ~/catkin_ws
catkin_make

Udev rules setup

Note: The following steps are only required when installing the package from source. When installing a binary debian package of phidgets_api >= 0.7.8, the udev rules are set up automatically.

Make sure your catkin workspace has been successfully compiled. To set up the udev rules for the Phidgets USB devices, run the following commands:

roscd phidgets_api
sudo cp debian/udev /etc/udev/rules.d/99-phidgets.rules
sudo udevadm control --reload-rules

Afterwards, disconnect the USB cable and plug it in again (or run sudo udevadm trigger).

For documentation regarding nodes, topics, etc:

http://ros.org/wiki/phidgets_drivers

Repository Summary

Checkout URI https://github.com/ros-drivers/phidgets_drivers.git
VCS Type git
VCS Version jade
Last Updated 2017-08-14
Dev Status MAINTAINED
Released RELEASED

Packages

Name Version
libphidget21 0.7.3
phidgets_api 0.7.3
phidgets_drivers 0.7.3
phidgets_imu 0.7.3

README

Phidgets drivers for ROS

Overview

Drivers for the Phidgets devices. This Catkin metapackage includes:

  • phidgets_api: a package which downloads and builds the Phidgets C API from phidgets.com (as an external project). It also implements a C++ wrapper for the C API, providing a base Phidget class and various inherited classes for different phidget devices.

  • phidgets_imu: a package exposing the functionality of the phidget IMU device using the ROS API.

Installing

From source

Make sure you have a working catkin workspace, as described at: http://www.ros.org/wiki/catkin/Tutorials/create_a_workspace

Also make sure you have git installed:

sudo apt-get install git-core

Change directory to the source folder of your catkin workspace. If, for instance, your workspace is ~/catkin_ws, make sure there is a src/ folder within it, then execute:

cd ~/catkin_ws/src

Download the metapackage from the github repository ( may be groovy, hydro, indigo...):

git clone -b <ros_distro> https://github.com/ros-drivers/phidgets_drivers.git

Install dependencies using rosdep:

rosdep install phidgets_drivers

Alternatively, if rosdep does not work, install the following packages:

sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev

Compile your catkin workspace:

cd ~/catkin_ws
catkin_make

Udev rules setup:

Make sure your catkin workspace has been successfully compiled. To set up the udev rules for the Phidgets USB devices, run the following commands:

cd ~/catkin_ws
sh src/phidgets_drivers/phidgets_api/share/setup-udev.sh

You will be prompted to type in your password.

For documentation regarding nodes, topics, etc:

http://ros.org/wiki/phidgets_drivers

Repository Summary

Checkout URI https://github.com/ros-drivers/phidgets_drivers.git
VCS Type git
VCS Version indigo
Last Updated 2017-02-17
Dev Status MAINTAINED
Released RELEASED

Packages

Name Version
phidgets_api 0.2.3
phidgets_drivers 0.2.3
phidgets_imu 0.2.3
phidgets_ir 0.2.3

README

Phidgets drivers for ROS

Overview

Drivers for the Phidgets devices. This Catkin metapackage includes:

  • phidgets_api: a package which downloads and builds the Phidgets C API from phidgets.com (as an external project). It also implements a C++ wrapper for the C API, providing a base Phidget class and various inherited classes for different phidget devices.

  • Two packages exposing the functionality of specific phidgets devices using the ROS API: phidgets_imu and phidgets_ir.

Installing

From source

Make sure you have a working catkin workspace, as described at: http://www.ros.org/wiki/catkin/Tutorials/create_a_workspace

Also make sure you have git installed:

sudo apt-get install git-core

Change directory to the source folder of your catkin workspace. If, for instance, your workspace is ~/catkin_ws, make sure there is a src/ folder within it, then execute:

cd ~/catkin_ws/src

Download the metapackage from the github repository ( may be groovy, hydro, indigo...):

git clone -b <ros_distro> https://github.com/ccny-ros-pkg/phidgets_drivers.git

Install dependencies using rosdep:

rosdep install phidgets_drivers

Alternatively, if rosdep does not work, install the following packages:

sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev

Compile your catkin workspace:

cd ~/catkin_ws
catkin_make

Udev rules setup:

Make sure your catkin workspace has been successfully compiled. To set up the udev rules for the Phidgets USB devices, run the following commands:

cd ~/catkin_ws
sh src/phidgets_drivers/phidgets_api/share/setup-udev.sh

You will be prompted to type in your password.

For documentation regarding nodes, topics, etc:

http://ros.org/wiki/phidgets_drivers