-
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.
guarantee same hw behavior as before
- Loading branch information
Showing
13 changed files
with
79 additions
and
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
|
||
<arg name="port" default="/dev/rfcomm0"/> | ||
<arg name="baud" default="57600"/> | ||
<arg name="component_name" default="gripper"/> | ||
<arg name="check" default="true"/> | ||
<remap from="/$(arg component_name)/internal/recover" to="/$(arg component_name)/driver/recover"/> | ||
<remap from="/$(arg component_name)/internal/halt" to="/$(arg component_name)/driver/halt"/> | ||
<arg name="port" default="/dev/rfcomm0"/> | ||
<arg name="baud" default="57600"/> | ||
<arg name="component_name" default="gripper"/> | ||
<arg name="check" default="true"/> | ||
<remap from="/$(arg component_name)/internal/recover" to="/$(arg component_name)/driver/recover"/> | ||
<remap from="/$(arg component_name)/internal/halt" to="/$(arg component_name)/driver/halt"/> | ||
|
||
<group ns="/$(arg component_name)"> | ||
<group ns="/$(arg component_name)"> | ||
|
||
<node pkg="rosserial_server" type="serial_node" name="rosserial_server"> | ||
<param name="port" value="$(arg port)"/> | ||
<param name="baud" value="$(arg baud)"/> | ||
<rosparam if="$(arg check)"> | ||
require: | ||
publishers: [ status ] | ||
subscribers: [ command, set_pin, clear_pin ] | ||
service_servers: [ init_finger, halt, init_pins, update_pins, set_pwm, recover ] | ||
</rosparam> | ||
</node> | ||
<node pkg="rosserial_server" type="serial_node" name="rosserial_server"> | ||
<param name="port" value="$(arg port)"/> | ||
<param name="baud" value="$(arg baud)"/> | ||
<rosparam if="$(arg check)"> | ||
require: | ||
publishers: [ status ] | ||
subscribers: [ command, set_pin, clear_pin ] | ||
service_servers: [ init_finger, halt, init_pins, update_pins, set_pwm, recover ] | ||
</rosparam> | ||
</node> | ||
|
||
<node pkg="rosserial_python" type="message_info_service.py" name="rosserial_message_info"/> | ||
<node pkg="rosserial_python" type="message_info_service.py" name="rosserial_message_info"/> | ||
|
||
<node pkg="cob_hand_bridge" type="cob_hand_bridge_node" name="cob_hand_bridge"> | ||
<rosparam param="sdhx/joint_names" subst_value="True">[$(arg component_name)_finger_1_joint, $(arg component_name)_finger_2_joint]</rosparam> | ||
</node> | ||
</group> | ||
<node pkg="cob_hand_bridge" type="cob_hand_bridge_node" name="cob_hand_bridge"> | ||
<rosparam param="sdhx/joint_names" subst_value="True">[$(arg component_name)_finger_1_joint, $(arg component_name)_finger_2_joint]</rosparam> | ||
</node> | ||
</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 |
---|---|---|
@@ -1,19 +1,26 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
|
||
<arg name="robot" default="$(optenv ROBOT !!NO_ROBOT_SET!!)"/> | ||
<arg name="component_name" default="arm"/> | ||
<arg name="robot_ip" default="localhost"/> | ||
<arg name="reverse_port" default="50001"/> | ||
<arg name="min_payload"/> | ||
<arg name="max_payload"/> | ||
<arg name="prefix" default="arm_"/> | ||
<arg name="sim" default="false"/> | ||
|
||
<!-- universal robot arm --> | ||
<node ns="arm/joint_trajectory_controller" pkg="ur_driver" type="driver.py" name="ur_driver" args="$(arg robot_ip) $(arg reverse_port)" output="screen"> | ||
<node unless="$(arg sim)" ns="arm/joint_trajectory_controller" pkg="ur_driver" type="driver.py" name="ur_driver" args="$(arg robot_ip) $(arg reverse_port)" output="screen"> | ||
<remap from="/arm/joint_trajectory_controller/joint_states" to="/arm/joint_states"/> | ||
<remap from="/arm/joint_trajectory_controller/robot_description" to="/robot_description"/> | ||
<param name="min_payload" type="double" value="$(arg min_payload)"/> | ||
<param name="max_payload" type="double" value="$(arg max_payload)"/> | ||
<param name="prefix" value="$(arg prefix)"/> | ||
</node> | ||
<include if="$(arg sim)" file="$(find cob_bringup)/controllers/generic_controller.launch"> | ||
<arg name="robot" value="$(arg robot)"/> | ||
<arg name="component_name" value="$(arg component_name)"/> | ||
</include> | ||
|
||
</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
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
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