-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
45 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,11 @@ | ||
cmake_minimum_required(VERSION 2.4.6) | ||
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake) | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(joystick_remapper) | ||
|
||
# Set the build type. Options are: | ||
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage | ||
# Debug : w/ debug symbols, w/o optimization | ||
# Release : w/o debug symbols, w/ optimization | ||
# RelWithDebInfo : w/ debug symbols, w/ optimization | ||
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries | ||
#set(ROS_BUILD_TYPE RelWithDebInfo) | ||
find_package(catkin REQUIRED COMPONENTS | ||
rospy | ||
sensor_msgs | ||
) | ||
|
||
rosbuild_init() | ||
|
||
#set the default path for built executables to the "bin" directory | ||
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin) | ||
#set the default path for built libraries to the "lib" directory | ||
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib) | ||
|
||
#uncomment if you have defined messages | ||
#rosbuild_genmsg() | ||
#uncomment if you have defined services | ||
#rosbuild_gensrv() | ||
|
||
#common commands for building c++ executables and libraries | ||
#rosbuild_add_library(${PROJECT_NAME} src/example.cpp) | ||
#target_link_libraries(${PROJECT_NAME} another_library) | ||
#rosbuild_add_boost_directories() | ||
#rosbuild_link_boost(${PROJECT_NAME} thread) | ||
#rosbuild_add_executable(example examples/example.cpp) | ||
#target_link_libraries(example ${PROJECT_NAME}) | ||
catkin_package( | ||
CATKIN_DEPENDS rospy sensor_msgs | ||
) |
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
# joystick_remapper | ||
# joystick_remapper | ||
|
||
http://wiki.ros.org/joystick_remapper/Tutorials/UsingJoystickRemapper |
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<node pkg="joy" type="joy_node" name="logitech_joy" > | ||
<remap from="joy" to="logitech" /> | ||
<param name="dev" value="/dev/input/js0" /> | ||
<param name="deadzone" value="0.1" /> | ||
<param name="autorepeat_rate" value="10" /> | ||
</node> | ||
<node pkg="joystick_remapper" type="joystick_remapper.py" name="logitech_to_ps3" > | ||
<remap from="joy_source" to="logitech" /> | ||
<remap from="joy_dest" to="joy" /> | ||
<param name="button_mapping" type="str" value="8 -1 -1 9 -1 -1 -1 -1 6 7 4 5 3 2 1 0" /> | ||
<param name="axis_mapping" type="str" value="=" /> | ||
</node> | ||
</launch> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<name>joystick_remapper</name> | ||
<version>0.0.1</version> | ||
<description>This node can be used to remap the buttons and axes of a joystick to get them into a standard form that other nodes can then use independently of which joystick is actually being used.</description> | ||
<author>Blaise Gassend</author> | ||
<maintainer email="[email protected]">Thomas Duvinage</maintainer> | ||
<license>BSD</license> | ||
|
||
<buildtool_depend>catkin</buildtool_depend> | ||
|
||
<build_depend>rospy</build_depend> | ||
<build_depend>sensor_msgs</build_depend> | ||
|
||
<run_depend>rospy</run_depend> | ||
<run_depend>sensor_msgs</run_depend> | ||
<run_depend>joy</run_depend> | ||
</package> |
0
joystick_remapper.py → scripts/joystick_remapper.py
100644 → 100755
File renamed without changes.