-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from jlblancoc/kinetic
Add Phidgets high-speed encoder ROS node.
- Loading branch information
Showing
8 changed files
with
397 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(phidgets_high_speed_encoder) | ||
|
||
# Use C++11 | ||
if (CMAKE_VERSION VERSION_LESS "3.1") | ||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||
set (CMAKE_CXX_FLAGS "-std=gnu++11 ${CMAKE_CXX_FLAGS}") | ||
endif () | ||
else () | ||
set (CMAKE_CXX_STANDARD 11) | ||
endif () | ||
|
||
# High level of warnings: | ||
if (CMAKE_COMPILER_IS_GNUCXX) | ||
add_compile_options(-Wall) | ||
endif() | ||
|
||
|
||
find_package(catkin REQUIRED COMPONENTS libphidget21 phidgets_api roscpp std_msgs message_generation sensor_msgs) | ||
|
||
add_message_files( | ||
FILES | ||
EncoderDecimatedSpeed.msg | ||
) | ||
|
||
generate_messages( | ||
DEPENDENCIES | ||
std_msgs | ||
) | ||
|
||
catkin_package( | ||
CATKIN_DEPENDS libphidget21 phidgets_api roscpp std_msgs message_runtime sensor_msgs | ||
) | ||
|
||
include_directories(${catkin_INCLUDE_DIRS}) | ||
|
||
add_executable(${PROJECT_NAME} src/phidgets_high_speed_encoder.cpp) | ||
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES}) | ||
add_dependencies(${PROJECT_NAME} ${catkin_EXPORTED_TARGETS}) | ||
add_dependencies(phidgets_high_speed_encoder phidgets_high_speed_encoder_generate_messages) | ||
|
||
install(TARGETS phidgets_high_speed_encoder | ||
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Encoder averaged speed for a channel in a Phidgets High-Speed Encoder board | ||
Header header | ||
# Averaged (sliding window) speed estimation [rad/s] | ||
float64 avr_speed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<name>phidgets_high_speed_encoder</name> | ||
<version>0.7.3</version> | ||
<description>Driver for the Phidgets high speed encoder devices</description> | ||
|
||
<maintainer email="geoffrey.viola@asirobots.com">Geoff Viola</maintainer> | ||
<maintainer email="jlblanco@ual.es">José-Luis Blanco Claraco</maintainer> | ||
|
||
<license>BSD</license> | ||
|
||
<author email="geoffrey.viola@asirobots.com">Geoff Viola</author> | ||
|
||
<buildtool_depend>catkin</buildtool_depend> | ||
<build_depend>libphidget21</build_depend> | ||
<build_depend>phidgets_api</build_depend> | ||
<build_depend>roscpp</build_depend> | ||
<build_depend>std_msgs</build_depend> | ||
<build_depend>message_generation</build_depend> | ||
<build_depend>sensor_msgs</build_depend> | ||
<run_depend>libphidget21</run_depend> | ||
<run_depend>phidgets_api</run_depend> | ||
<run_depend>roscpp</run_depend> | ||
<run_depend>std_msgs</run_depend> | ||
<run_depend>message_runtime</run_depend> | ||
<run_depend>sensor_msgs</run_depend> | ||
|
||
<export> | ||
</export> | ||
</package> |
Oops, something went wrong.