-
Notifications
You must be signed in to change notification settings - Fork 9
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 #8 from iory/wheel
Enable wheeled kxr
- Loading branch information
Showing
33 changed files
with
8,976 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<launch> | ||
|
||
<rosparam command="load" file="$(find kxr_models)/config/kxrmw4a6h2m_diff_drive_controller.yaml" /> | ||
|
||
<node name="controller_spawner" | ||
pkg="controller_manager" type="spawner" | ||
respawn="false" output="screen" | ||
args="diff_drive_controller" /> | ||
|
||
</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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<launch> | ||
|
||
<arg name="urdf_path" default="$(find kxr_models)/urdf/kxrmw4a6h2m.urdf" /> | ||
<arg name="servo_config_path" default="$(find kxr_models)/config/kxrmw4a6h2m_servo_config.yaml" /> | ||
|
||
<include file="$(find kxr_controller)/launch/kxr_controller.launch" > | ||
<arg name="urdf_path" value="$(arg urdf_path)" /> | ||
<arg name="servo_config_path" value="$(arg servo_config_path)" /> | ||
</include> | ||
|
||
<include file="$(find kxr_controller)/launch/diff_drive_controller.launch" /> | ||
|
||
</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
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
32 changes: 32 additions & 0 deletions
32
ros/kxr_models/config/kxrmw4a6h2m_diff_drive_controller.yaml
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,32 @@ | ||
diff_drive_controller: | ||
type: "diff_drive_controller/DiffDriveController" | ||
left_wheel: ['LLEG_JOINT0', 'LLEG_JOINT1'] | ||
right_wheel: ['RLEG_JOINT0', 'RLEG_JOINT1'] | ||
publish_rate: 50 | ||
pose_covariance_diagonal: [0.001, 0.001, 1000000.0, 1000000.0, 1000000.0, 0.03] | ||
twist_covariance_diagonal: [0.001, 0.001, 0.001, 1000000.0, 1000000.0, 0.03] | ||
cmd_vel_timeout: 0.25 | ||
|
||
# Odometry fused with IMU is published by robot_localization, so | ||
# no need to publish a TF based on encoders alone. | ||
enable_odom_tf: true | ||
base_frame_id: bodyset94855827795112 | ||
|
||
# Wheel separation and radius multipliers | ||
wheel_separation_multiplier: 1.5 # default: 1.0 | ||
wheel_radius_multiplier : 1.0 # default: 1.0 | ||
|
||
# Velocity and acceleration limits | ||
# Whenever a min_* is unspecified, default to -max_* | ||
linear: | ||
x: | ||
has_velocity_limits : true | ||
max_velocity : 0.1 # m/s | ||
has_acceleration_limits: true | ||
max_acceleration : 20.0 # m/s^2 | ||
angular: | ||
z: | ||
has_velocity_limits : true | ||
max_velocity : 4.0 # rad/s | ||
has_acceleration_limits: true | ||
max_acceleration : 25.0 # rad/s^2 |
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,24 @@ | ||
joint_name_to_servo_id: { | ||
HEAD_JOINT0: 32, | ||
HEAD_JOINT1: 34, | ||
LARM_JOINT0: 3, | ||
LARM_JOINT1: 5, | ||
LARM_JOINT2: 23, | ||
LARM_JOINT3: 7, | ||
LARM_JOINT4: 27, | ||
LARM_JOINT5: 29, | ||
LARM_JOINT6: 19, | ||
LARM_JOINT7: 19, | ||
LLEG_JOINT0: {'id': 25, 'direction': -1}, | ||
LLEG_JOINT1: {'id': 17, 'direction': -1}, | ||
RARM_JOINT0: 2, | ||
RARM_JOINT1: 4, | ||
RARM_JOINT2: 22, | ||
RARM_JOINT3: 6, | ||
RARM_JOINT4: 26, | ||
RARM_JOINT5: 28, | ||
RARM_JOINT6: 18, | ||
RARM_JOINT7: 18, | ||
RLEG_JOINT0: {'id': 24, 'direction': 1}, | ||
RLEG_JOINT1: {'id': 16, 'direction': 1} | ||
} |
Oops, something went wrong.
9cd91a5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report
9cd91a5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report