-
Notifications
You must be signed in to change notification settings - Fork 132
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 #798 from ipa-jba/feature/raw-mini
Feature/raw mini
- Loading branch information
Showing
16 changed files
with
883 additions
and
9 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,39 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<arg name="robot"/> | ||
|
||
<arg name="pkg_hardware_config" default="$(find cob_hardware_config)"/> | ||
<arg name="sim" default="false"/> | ||
|
||
|
||
<group ns="base"> | ||
<group unless="$(arg sim)"> | ||
<node pkg="rosserial_python" type="serial_node.py" name ="rosserial" output="screen"> | ||
<param name="port" value="/dev/ttyACM0"/> | ||
<param name="baud" value="115200"/> | ||
</node> | ||
|
||
<node pkg="cob_mecanum_controller" type="cob_mecanum_controller_node" name="mecanum_controller" output="log"> | ||
<param name="lx" value="0.115" /> | ||
<param name="ly" value="0.09" /> | ||
<param name="r" value="0.1" /> | ||
</node> | ||
</group> | ||
<!-- twist mux --> | ||
<include file="$(find cob_bringup)/tools/twist_mux.launch"> | ||
<arg name="robot" value="$(arg robot)"/> | ||
<arg name="cmd_vel_out" default="velocity_smoother/command"/> | ||
<arg name="marker_out" default="twist_mux/marker"/> | ||
</include> | ||
|
||
<!-- velocity smoother --> | ||
<include file="$(find cob_bringup)/tools/velocity_smoother.launch"> | ||
<arg name="robot" value="$(arg robot)"/> | ||
<arg name="config_file" default="$(arg pkg_hardware_config)/robots/$(arg robot)/config/velocity_smoother.yaml"/> | ||
<arg name="raw_cmd_vel_topic" default="velocity_smoother/command"/> | ||
<arg name="smooth_cmd_vel_topic" default="cmd_vel"/> | ||
<arg name="robot_cmd_vel_topic" default="cmd_vel"/> | ||
<arg name="odom_topic" default="odom"/> | ||
</include> | ||
</group> | ||
</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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<launch> | ||
<arg name="pkg_hardware_config" /> | ||
<arg name="robot" /> | ||
|
||
<node pkg="rplidar_ros" type="rplidarNode" name="rplidar_node" output="screen"> | ||
<rosparam command="load" file="$(arg pkg_hardware_config)/robots/$(arg robot)/config/rplidar.yaml"/> | ||
</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
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,8 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
|
||
<arg name="env-script" default="$(find cob_bringup)/env.sh"/> | ||
|
||
<include file="$(find cob_bringup)/robots/raw-mini.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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
|
||
<!-- args --> | ||
<arg name="robot" value="raw-mini"/> | ||
<arg name="sim" default="false"/> | ||
<arg name="pkg_hardware_config" default="$(find cob_hardware_config)"/> | ||
|
||
|
||
<!-- upload robot description --> | ||
<include file="$(find cob_hardware_config)/upload_robot.launch"> | ||
<arg name="robot" value="$(arg robot)"/> | ||
</include> | ||
|
||
<!-- start hardware --> | ||
<group unless="$(arg sim)"> | ||
<include file="$(find cob_bringup)/drivers/rplidar.launch"> | ||
<arg name="robot" value="$(arg robot)" /> | ||
<arg name="pkg_hardware_config" value="$(arg pkg_hardware_config)" /> | ||
</include> | ||
</group> | ||
|
||
<include file="$(find cob_bringup)/components/raw_mini_base.launch"> | ||
<arg name="robot" value="$(arg robot)" /> | ||
<arg name="sim" value="$(arg sim)"/> | ||
</include> | ||
|
||
<!-- start additional packages --> | ||
<include file="$(find cob_bringup)/tools/teleop.launch"> | ||
<arg name="robot" value="$(arg robot)"/> | ||
</include> | ||
|
||
<include file="$(find cob_bringup)/tools/robot_state_publisher.launch"> | ||
<arg name="robot" value="$(arg robot)"/> | ||
</include> | ||
</launch> |
2 changes: 2 additions & 0 deletions
2
cob_hardware_config/robots/raw-mini/config/joint_state_publisher.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,2 @@ | ||
rate: 100 #Hz | ||
source_list: [/base/joint_states] |
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,2 @@ | ||
dev: /dev/input/js0 | ||
deadzone: 0.12 |
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,5 @@ | ||
serial_port: "/dev/ttyUSB0" | ||
serial_baudrate: 115200 | ||
frame_id: laser_link | ||
inverted: false | ||
angle_compensate: 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#raw-mini | ||
########## | ||
# common params | ||
run_factor: 2.0 | ||
apply_ramp: false | ||
joy_num_buttons: 12 | ||
joy_num_axes: 6 | ||
joy_num_modes: 1 | ||
|
||
# axes | ||
axis_vx: 4 | ||
axis_vy: 3 | ||
axis_vz: 5 | ||
axis_roll: 4 | ||
axis_pitch: 3 | ||
axis_yaw: 0 | ||
|
||
# buttons | ||
deadman_button: 5 | ||
safety_button: 6 | ||
init_button: 9 | ||
|
||
#mode1: Base | ||
run_button: 7 | ||
|
||
components: { | ||
base: { | ||
twist_topic_name: '/base/twist_mux/command_teleop_joy', | ||
twist_safety_topic_name: '/base/twist_mux/command_teleop_joy', | ||
twist_max_velocity: [0.5, 0.5, 0.5], | ||
twist_max_acc: [0.5, 0.5, 0.7] | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
cob_hardware_config/robots/raw-mini/config/twist_mux_locks.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,26 @@ | ||
# Locks to stop the twist inputs. | ||
# For each lock: | ||
# - topic : input topic that provides the lock; it must be of type std_msgs::Bool?!!! | ||
# - timeout : == 0.0 -> not used | ||
# > 0.0 -> the lock is supposed to published at a certain frequency in order | ||
# to detect that the publisher is alive; the timeout in seconds allows | ||
# to detect that, and if the publisher dies we will enable the lock | ||
# - priority: priority in the range [0, 255], so all the topics with priority lower than it | ||
# will be stopped/disabled | ||
|
||
locks: | ||
- | ||
name : pause_navigation | ||
topic : twist_mux/locks/pause_navigation | ||
timeout : 0.0 | ||
priority: 21 | ||
- | ||
name : pause_teleop | ||
topic : twist_mux/locks/pause_teleop | ||
timeout : 0.0 | ||
priority: 101 | ||
- | ||
name : pause_all | ||
topic : twist_mux/locks/pause_all | ||
timeout : 0.0 | ||
priority: 255 |
43 changes: 43 additions & 0 deletions
43
cob_hardware_config/robots/raw-mini/config/twist_mux_topics.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,43 @@ | ||
# Input topics handled/muxed. | ||
# For each topic: | ||
# - name : name identifier to select the topic | ||
# - topic : input topic of geometry_msgs::Twist type | ||
# - timeout : timeout in seconds to start discarding old messages, and use 0.0 speed instead | ||
# - priority: priority in the range [0, 255]; the higher the more priority over other topics | ||
|
||
topics: | ||
- | ||
name : collision_velocity_filter | ||
topic : twist_mux/command_safe | ||
timeout : 0.25 | ||
priority: 10 | ||
- | ||
name : navigation | ||
topic : twist_mux/command_navigation | ||
timeout : 0.25 | ||
priority: 20 | ||
- | ||
name : syncmm # cob_twist_controller | ||
topic : twist_mux/command_syncmm | ||
timeout : 0.5 | ||
priority: 60 | ||
- | ||
name : script_server | ||
topic : twist_mux/command_script_server | ||
timeout : 0.5 | ||
priority: 70 | ||
- | ||
name : teleop_keyboard | ||
topic : twist_mux/command_teleop_keyboard | ||
timeout : 0.5 | ||
priority: 80 | ||
- | ||
name : teleop_android | ||
topic : twist_mux/command_teleop_android | ||
timeout : 0.5 | ||
priority: 90 | ||
- | ||
name : teleop_joystick | ||
topic : twist_mux/command_teleop_joy | ||
timeout : 0.25 | ||
priority: 100 |
23 changes: 23 additions & 0 deletions
23
cob_hardware_config/robots/raw-mini/config/velocity_smoother.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,23 @@ | ||
# Example configuration: | ||
# - velocity limits are around a 10% above the physical limits | ||
# - acceleration limits are just low enough to avoid jerking | ||
|
||
# Mandatory parameters | ||
speed_lim_vx: 1.0 | ||
speed_lim_vy: 1.0 | ||
speed_lim_w: 1.0 | ||
|
||
accel_lim_vx: 0.5 | ||
accel_lim_vy: 0.5 | ||
accel_lim_w: 0.5 | ||
|
||
# Optional parameters | ||
frequency: 100.0 | ||
decel_factor: 1.5 #used if zero velocity is received or goal velocity is far away from current velocity | ||
decel_factor_safe: 3.5 #used if no velocity commands received (eg. no deadman on joystick) | ||
|
||
# Robot velocity feedback type: | ||
# 0 - none | ||
# 1 - odometry | ||
# 2 - end robot commands | ||
robot_feedback: 1 |
Oops, something went wrong.