-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CMake required version bumped to 3.5. * Fix README prerequisites. * Remove unneeded CMAKE_CXX_STANDARD. * Remove CreateDriver's priv_nh_ member.
- Loading branch information
1 parent
910a742
commit 1983450
Showing
26 changed files
with
385 additions
and
393 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
cmake_minimum_required(VERSION 3.5) | ||
project(create_bringup) | ||
|
||
find_package(catkin REQUIRED) | ||
|
||
catkin_package() | ||
find_package(ament_cmake REQUIRED) | ||
|
||
install(DIRECTORY config launch | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} | ||
DESTINATION share/${PROJECT_NAME} | ||
PATTERN ".svn" EXCLUDE | ||
) | ||
|
||
ament_package() |
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,20 +1,22 @@ | ||
# The device path for the robot | ||
dev: "/dev/ttyUSB0" | ||
create_node: | ||
ros__parameters: | ||
# The device path for the robot | ||
dev: "/dev/ttyUSB0" | ||
|
||
# Baud rate. Passing this parameter overwrites the inferred value based on the robot_model | ||
# baud: 115200 | ||
# Baud rate. Passing this parameter overwrites the inferred value based on the robot_model | ||
# baud: 115200 | ||
|
||
# Base frame ID | ||
base_frame: "base_footprint" | ||
# Base frame ID | ||
base_frame: "base_footprint" | ||
|
||
# Odometry frame ID | ||
odom_frame: "odom" | ||
# Odometry frame ID | ||
odom_frame: "odom" | ||
|
||
# Time (s) without receiving a velocity command before stopping the robot | ||
latch_cmd_duration: 0.2 | ||
# Time (s) without receiving a velocity command before stopping the robot | ||
latch_cmd_duration: 0.2 | ||
|
||
# Internal loop update rate (Hz) | ||
loop_hz: 10.0 | ||
# Internal loop update rate (Hz) | ||
loop_hz: 10.0 | ||
|
||
# Whether to publish the transform between odom_frame and base_frame | ||
publish_tf: true | ||
# Whether to publish the transform between odom_frame and base_frame | ||
publish_tf: true |
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,32 +1,33 @@ | ||
# Logitech F710 wireless controller | ||
# Deadman (enable) button: Right Trigger | ||
# D<>X button (located on the back panel) must be set to D | ||
teleop: | ||
piloting: | ||
type: topic | ||
message_type: "geometry_msgs/Twist" | ||
topic_name: cmd_vel | ||
deadman_buttons: [7] | ||
axis_mappings: | ||
- | ||
axis: 3 # Right thumb stick (up/down) | ||
target: linear.x | ||
scale: 0.4 | ||
offset: 0.0 | ||
- | ||
axis: 2 # Right thumb stick (left/right) | ||
target: angular.z | ||
scale: 2.5 | ||
offset: 0.0 | ||
dock: | ||
type: topic | ||
message_type: "std_msgs/Empty" | ||
topic_name: dock | ||
deadman_buttons: [3, 7] # RT + Y | ||
axis_mappings: [] | ||
undock: | ||
type: topic | ||
message_type: "std_msgs/Empty" | ||
topic_name: undock | ||
deadman_buttons: [1, 7] # RT + A | ||
axis_mappings: [] | ||
joy_teleop: | ||
ros__parameters: | ||
piloting: | ||
type: topic | ||
message_type: "geometry_msgs/msg/Twist" | ||
topic_name: cmd_vel | ||
deadman_buttons: [7] | ||
axis_mappings: | ||
- | ||
axis: 3 # Right thumb stick (up/down) | ||
target: linear.x | ||
scale: 0.4 | ||
offset: 0.0 | ||
- | ||
axis: 2 # Right thumb stick (left/right) | ||
target: angular.z | ||
scale: 2.5 | ||
offset: 0.0 | ||
dock: | ||
type: topic | ||
message_type: "std_msgs/msg/Empty" | ||
topic_name: dock | ||
deadman_buttons: [3, 7] # RT + Y | ||
axis_mappings: [] | ||
undock: | ||
type: topic | ||
message_type: "std_msgs/msg/Empty" | ||
topic_name: undock | ||
deadman_buttons: [1, 7] # RT + A | ||
axis_mappings: [] |
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,18 +1,19 @@ | ||
# XBox 360 wired controller | ||
teleop: | ||
piloting: | ||
type: topic | ||
message_type: "geometry_msgs/Twist" | ||
topic_name: cmd_vel | ||
deadman_buttons: [] # No deadman buttons | ||
axis_mappings: | ||
- | ||
axis: 4 # Right thumb (up/down) | ||
target: linear.x | ||
scale: 0.4 | ||
offset: 0.0 | ||
- | ||
axis: 3 # Right thumb stick (left/right) | ||
target: angular.z | ||
scale: 2.5 | ||
offset: 0.0 | ||
joy_teleop: | ||
ros__parameters: | ||
piloting: | ||
type: topic | ||
message_type: "geometry_msgs/msg/Twist" | ||
topic_name: cmd_vel | ||
deadman_buttons: [] # No deadman buttons | ||
axis_mappings: | ||
- | ||
axis: 4 # Right thumb (up/down) | ||
target: linear.x | ||
scale: 0.4 | ||
offset: 0.0 | ||
- | ||
axis: 3 # Right thumb stick (left/right) | ||
target: angular.z | ||
scale: 2.5 | ||
offset: 0.0 |
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,13 +1,13 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<arg name="config" default="$(find create_bringup)/config/default.yaml" /> | ||
<arg name="config" default="$(find-pkg-share create_bringup)/config/default.yaml" /> | ||
<arg name="desc" default="true" /> | ||
|
||
<node name="create_driver" pkg="create_driver" type="create_driver" output="screen"> | ||
<rosparam command="load" file="$(arg config)" /> | ||
<node name="create_driver" pkg="create_driver" exec="create_driver" output="screen"> | ||
<param from="$(var config)" /> | ||
<param name="robot_model" value="CREATE_1" /> | ||
</node> | ||
|
||
<!-- Robot description --> | ||
<include if="$(arg desc)" file="$(find create_description)/launch/create_1.launch" /> | ||
<include if="$(var desc)" file="$(find-pkg-share create_description)/launch/create_1.xml" /> | ||
</launch> |
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,13 +1,13 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<arg name="config" default="$(find create_bringup)/config/default.yaml" /> | ||
<arg name="config" default="$(find-pkg-share create_bringup)/config/default.yaml" /> | ||
<arg name="desc" default="true" /> | ||
|
||
<node name="create_driver" pkg="create_driver" type="create_driver" output="screen"> | ||
<rosparam command="load" file="$(arg config)" /> | ||
<node name="create_driver" pkg="create_driver" exec="create_driver" output="screen"> | ||
<param from="$(var config)" /> | ||
<param name="robot_model" value="CREATE_2" /> | ||
</node> | ||
|
||
<!-- Robot description --> | ||
<include if="$(arg desc)" file="$(find create_description)/launch/create_2.launch" /> | ||
<include if="$(var desc)" file="$(find-pkg-share create_description)/launch/create_2.xml" /> | ||
</launch> |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<arg name="config" default="$(find create_bringup)/config/default.yaml" /> | ||
<arg name="config" default="$(find-pkg-share create_bringup)/config/default.yaml" /> | ||
<arg name="desc" default="true" /> | ||
|
||
<node name="create_driver" pkg="create_driver" type="create_driver" output="screen"> | ||
<rosparam command="load" file="$(arg config)" /> | ||
<node name="create_driver" pkg="create_driver" exec="create_driver" output="screen"> | ||
<param from="$(var config)" /> | ||
<param name="robot_model" value="ROOMBA_400" /> | ||
</node> | ||
|
||
<!-- Robot description --> | ||
<include if="$(arg desc)" file="$(find create_description)/launch/roomba_400.launch" /> | ||
<include if="$(var desc)" file="$(find-pkg-share create_description)/launch/roomba_400.xml" /> | ||
</launch> |
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 |
---|---|---|
|
@@ -12,13 +12,14 @@ | |
|
||
<author email="[email protected]">Jacob Perron</author> | ||
|
||
<buildtool_depend>catkin</buildtool_depend> | ||
<buildtool_depend>ament_cmake</buildtool_depend> | ||
|
||
<exec_depend>create_description</exec_depend> | ||
<exec_depend>create_driver</exec_depend> | ||
<exec_depend>joy</exec_depend> | ||
<exec_depend>joy_teleop</exec_depend> | ||
|
||
<export> | ||
<build_type>ament_cmake</build_type> | ||
</export> | ||
</package> |
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,25 +1,21 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
cmake_minimum_required(VERSION 3.5) | ||
project(create_description) | ||
|
||
find_package(catkin REQUIRED COMPONENTS | ||
roslaunch | ||
) | ||
|
||
catkin_package() | ||
|
||
roslaunch_add_file_check(launch) | ||
find_package(ament_cmake REQUIRED) | ||
|
||
install(DIRECTORY launch/ | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch | ||
DESTINATION share/${PROJECT_NAME}/launch | ||
PATTERN ".svn" EXCLUDE | ||
) | ||
|
||
install(DIRECTORY meshes/ | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/meshes | ||
DESTINATION share/${PROJECT_NAME}/meshes | ||
PATTERN ".svn" EXCLUDE | ||
) | ||
|
||
install(DIRECTORY urdf/ | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/urdf | ||
DESTINATION share/${PROJECT_NAME}/urdf | ||
PATTERN ".svn" EXCLUDE | ||
) | ||
|
||
ament_package() |
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,5 +1,6 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<param name="robot_description" command="$(find xacro)/xacro '$(find create_description)/urdf/create_1.urdf.xacro'" /> | ||
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" output="screen" /> | ||
<node name="robot_state_publisher" pkg="robot_state_publisher" exec="robot_state_publisher" output="screen"> | ||
<param name="robot_description" type="str" value="$(command '$(find-pkg-prefix xacro)/bin/xacro $(find-pkg-share create_description)/urdf/create_1.urdf.xacro')" /> | ||
</node> | ||
</launch> |
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,5 +1,6 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<param name="robot_description" command="$(find xacro)/xacro '$(find create_description)/urdf/create_2.urdf.xacro'" /> | ||
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" output="screen" /> | ||
<node name="robot_state_publisher" pkg="robot_state_publisher" exec="robot_state_publisher" output="screen"> | ||
<param name="robot_description" type="str" value="$(command '$(find-pkg-prefix xacro)/bin/xacro $(find-pkg-share create_description)/urdf/create_2.urdf.xacro')" /> | ||
</node> | ||
</launch> |
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,6 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<!-- TODO(jacobperron): Add Roomba URDF and mesh to use here instead of Create 1 model --> | ||
<param name="robot_description" command="$(find xacro)/xacro '$(find create_description)/urdf/create_1.urdf.xacro'" /> | ||
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" output="screen" /> | ||
<node name="robot_state_publisher" pkg="robot_state_publisher" exec="robot_state_publisher" output="screen"> | ||
<!-- TODO(jacobperron): Add Roomba URDF and mesh to use here instead of Create 1 model --> | ||
<param name="robot_description" type="str" value="$(command '$(find-pkg-prefix xacro)/bin/xacro $(find-pkg-share create_description)/urdf/create_1.urdf.xacro')" /> | ||
</node> | ||
</launch> |
Oops, something went wrong.