Skip to content

Commit ddbccc3

Browse files
committed
2.0.0
1 parent 32ffb69 commit ddbccc3

40 files changed

+644
-630
lines changed

README.md

+152-101
Large diffs are not rendered by default.

qb_hand/CHANGELOG.rst

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Changelog for package qb_hand
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
2.0.0 (2018-05-30)
6+
------------------
7+
58
1.0.6 (2017-11-24)
69
------------------
710
* Update README and tutorials

qb_hand/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<package format="2">
22
<name>qb_hand</name>
3-
<version>1.0.6</version>
3+
<version>2.0.0</version>
44
<description>
55
This package contains the ROS interface for qbrobotics® qbhand device.
66
</description>

qb_hand_control/CHANGELOG.rst

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
Changelog for package qb_hand_control
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
2.0.0 (2018-05-30)
6+
------------------
7+
* Update README
8+
* Refactor launch files
9+
* Remove control node
10+
* Add blocking setCommands method support
11+
* Refactor launch files
12+
* Fix destructor calls on ROS shutdown
13+
514
1.0.6 (2017-11-24)
615
------------------
716

qb_hand_control/CMakeLists.txt

+3-87
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,12 @@
11
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
2-
project(qb_hand_control VERSION 1.0.6 LANGUAGES CXX)
2+
project(qb_hand_control VERSION 2.0.0 LANGUAGES CXX)
33

44
# Dependency Settings
5-
find_package(catkin REQUIRED
6-
COMPONENTS
7-
roscpp
8-
qb_device_control
9-
qb_hand_hardware_interface
10-
)
5+
find_package(catkin REQUIRED)
116

12-
include_directories(include
13-
${catkin_INCLUDE_DIRS}
14-
)
15-
16-
catkin_package(
17-
INCLUDE_DIRS
18-
include
19-
LIBRARIES
20-
${PROJECT_NAME}
21-
CATKIN_DEPENDS
22-
roscpp
23-
qb_device_control
24-
qb_hand_hardware_interface
25-
)
26-
27-
# Build Settings
28-
add_executable(qb_hand_default
29-
src/main.cpp
30-
src/qb_hand_control.cpp
31-
)
32-
33-
target_link_libraries(qb_hand_default
34-
PUBLIC
35-
${catkin_LIBRARIES}
36-
)
37-
38-
add_dependencies(qb_hand_default
39-
${${PROJECT_NAME}_EXPORTED_TARGETS}
40-
${catkin_EXPORTED_TARGETS}
41-
)
42-
43-
# Exported libraries
44-
add_library(${PROJECT_NAME}
45-
src/qb_hand_control.cpp
46-
)
47-
48-
add_dependencies(${PROJECT_NAME}
49-
${${PROJECT_NAME}_EXPORTED_TARGETS}
50-
${catkin_EXPORTED_TARGETS}
51-
)
52-
53-
# C++ Settings
54-
if (CMAKE_VERSION VERSION_LESS "3.1")
55-
target_compile_options(qb_hand_default
56-
PUBLIC
57-
"-std=c++14"
58-
)
59-
target_compile_options(${PROJECT_NAME}
60-
PUBLIC
61-
"-std=c++14"
62-
)
63-
else ()
64-
set_property(
65-
TARGET
66-
qb_hand_default
67-
${PROJECT_NAME}
68-
PROPERTY CXX_STANDARD 14
69-
)
70-
71-
set_property(
72-
TARGET
73-
qb_hand_default
74-
${PROJECT_NAME}
75-
PROPERTY CXX_STANDARD_REQUIRED ON
76-
)
77-
endif ()
7+
catkin_package()
788

799
# Installation
80-
install(
81-
TARGETS ${PROJECT_NAME}
82-
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
83-
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
84-
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
85-
)
86-
87-
install(
88-
DIRECTORY
89-
include/${PROJECT_NAME}/
90-
DESTINATION
91-
${CATKIN_PACKAGE_INCLUDE_DESTINATION}
92-
)
93-
9410
install(
9511
DIRECTORY
9612
launch/
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
qbhand_joint_state_controller:
1+
$(arg device_name)_joint_state_controller:
22
type: joint_state_controller/JointStateController
33
publish_rate: 100
44

55
# control the qbhand motor and its relative synergy
6-
qbhand_synergy_trajectory_controller:
6+
$(arg device_name)_synergy_trajectory_controller:
77
type: position_controllers/JointTrajectoryController
88
joints:
9-
- qbhand_synergy_joint
10-
constraints:
11-
goal_time: 0.1
12-
stopped_velocity_tolerance: 0.05
13-
qbhand_synergy_joint:
14-
trajectory: 0.05
15-
goal: 0.01
9+
- $(arg device_name)_synergy_joint
10+
constraints: # fake values due to the adaptability
11+
goal_time: 10.0
12+
stopped_velocity_tolerance: 10.0
13+
$(arg device_name)_synergy_joint:
14+
trajectory: 10.0
15+
goal: 10.0
1616
state_publish_rate: 100
1717
action_monitor_rate: 120
1818
stop_trajectory_duration: 0
+10-16
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
# Waypoints describe the desired motion trajectory:
22
# - time [s]: can be either a single value or an interval for which joint_positions hold
33
# - joint_positions:
4-
# - hand closure [0,1].
4+
# - hand closure [0,1];
5+
# - joint_velocities: optional, use it only if you want a nonzero value
6+
# - hand closure [0,1]/s;
7+
# - joint_accelerations: optional, use it only if you want a nonzero value
8+
# - hand closure [0,1]/s^2;
9+
#
10+
# It is worth noting that, if specified, joint_positions, joint_velocities and joint_accelerations must be of size one.
511

612
waypoints:
713
-
8-
time: [1.0]
14+
time: [2.0]
915
joint_positions:
1016
qbhand: [0.0]
1117
-
12-
time: [2.25, 2.75]
18+
time: [4.0, 4.2]
1319
joint_positions:
14-
qbhand: [0.7]
15-
-
16-
time: [4.0, 5.0]
17-
joint_positions:
18-
qbhand: [0.0]
19-
-
20-
time: [10.75, 11.25]
21-
joint_positions:
22-
qbhand: [0.7]
23-
-
24-
time: [17.0, 18.0]
25-
joint_positions:
26-
qbhand: [0.0]
20+
qbhand: [0.8]

qb_hand_control/include/qb_hand_control/qb_hand_control.h

-57
This file was deleted.

qb_hand_control/launch/control.launch

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<launch>
2+
<!-- device info -->
3+
<arg name="device_id" default="1" doc="The ID of the device [1, 128]."/>
4+
<arg name="device_type" value="qbhand" doc="The type of the device [qbhand, qbmove, ...]."/>
5+
<arg name="device_name" default="$(arg device_type)$(arg device_id)" doc="The unique device name used in the yaml controller configurations (also in the urdf if not already specified there)."/>
6+
<!-- robot settings -->
7+
<arg name="control_duration" default="0.01" doc="The duration of the control loop [s]."/>
8+
<arg name="robot_hardware" default="[$(arg device_name)]" doc="The robot hardware interface names, e.g. [device1, device2, ...]."/>
9+
<arg name="robot_name" default="$(arg device_type)" doc="The unique robot name."/>
10+
<arg name="robot_namespace" default="$(arg device_name)" doc="The unique robot namespace."/>
11+
<arg name="robot_package" default="qb_hand" doc="The base package name prefix for the robot configurations [urdf, rviz, ...]."/>
12+
<arg name="source_list" default="[control/joint_states]" doc="The joint_states source list for the joint_state_publisher."/>
13+
<!-- read/write settings -->
14+
<arg name="get_currents" default="true" doc="Choose whether or not to retrieve current measurements from the device."/>
15+
<arg name="get_positions" default="true" doc="Choose whether or not to retrieve position measurements from the device."/>
16+
<arg name="get_distinct_packages" default="false" doc="Choose whether or not to retrieve current and position measurements from the device in two distinct packages."/>
17+
<arg name="max_repeats" default="3" doc="The maximum number of consecutive repetitions to mark retrieved data as corrupted."/>
18+
<arg name="set_commands" default="true" doc="Choose whether or not to send command positions to the device."/>
19+
<arg name="set_commands_async" default="false" doc="Choose whether or not to send commands without waiting for ack."/>
20+
<!-- initialization settings -->
21+
<arg name="activate_on_initialization" default="false" doc="Choose whether or not to activate the motors on node startup."/>
22+
<arg name="rescan_on_initialization" default="false" doc="Choose whether or not to rescan the serial ports on node startup."/>
23+
<!-- launch settings -->
24+
<arg name="standalone" default="false" doc="Choose whether or not to start the Communication Handler."/>
25+
<arg name="use_controller_gui" default="false" doc="Choose whether or not to use the controller GUI."/>
26+
<arg name="use_rviz" default="true" doc="Choose whether or not to use rviz."/>
27+
<arg name="use_waypoints" default="false" doc="Choose whether or not to use the waypoint references."/>
28+
29+
30+
<include file="$(find qb_device_driver)/launch/communication_handler.launch" if="$(arg standalone)"/>
31+
32+
<include file="$(find qb_device_bringup)/launch/device_bringup.launch" pass_all_args="true"/>
33+
34+
<include file="$(find qb_device_bringup)/launch/robot_bringup.launch" pass_all_args="true"/>
35+
</launch>

qb_hand_control/launch/gui_control.launch

-22
This file was deleted.

qb_hand_control/launch/waypoint_control.launch

-22
This file was deleted.

qb_hand_control/package.xml

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<package format="2">
22
<name>qb_hand_control</name>
3-
<version>1.0.6</version>
3+
<version>2.0.0</version>
44
<description>
55
This package contains the ROS control node for qbrobotics® qbhand device.
66
</description>
@@ -14,10 +14,7 @@
1414

1515
<buildtool_depend>catkin</buildtool_depend>
1616

17-
<depend>roscpp</depend>
18-
<depend>qb_device_control</depend>
19-
<depend>qb_hand_hardware_interface</depend>
20-
21-
<!--TODO: <test_depend>gtest</test_depend>-->
22-
<doc_depend>doxygen</doc_depend>
17+
<export>
18+
<architecture_independent/>
19+
</export>
2320
</package>

0 commit comments

Comments
 (0)