Skip to content

Commit c9e7b80

Browse files
committed
pushing new changes
1 parent 5abba29 commit c9e7b80

37 files changed

+1848
-768
lines changed

CMakeLists.txt

+17-9
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ find_package(catkin REQUIRED COMPONENTS
1111
roscpp
1212
rospy
1313
std_msgs
14+
message_generation
1415
)
1516

1617
## System dependencies are found with CMake's conventions
@@ -47,11 +48,18 @@ find_package(catkin REQUIRED COMPONENTS
4748
## * add every package in MSG_DEP_SET to generate_messages(DEPENDENCIES ...)
4849

4950
## Generate messages in the 'msg' folder
50-
# add_message_files(
51-
# FILES
52-
# Message1.msg
51+
add_message_files(
52+
FILES
53+
ControlCommand.msg
54+
ControlCommandStamped.msg
55+
FrictionParams.msg
56+
FrictionParamsStamped.msg
57+
QPDebug.msg
58+
QPDebugStamped.msg
59+
SlidingState.msg
60+
SlidingStateStamped.msg
5361
# Message2.msg
54-
# )
62+
)
5563

5664
## Generate services in the 'srv' folder
5765
# add_service_files(
@@ -68,10 +76,10 @@ find_package(catkin REQUIRED COMPONENTS
6876
# )
6977

7078
## Generate added messages and services with any dependencies listed here
71-
# generate_messages(
72-
# DEPENDENCIES
73-
# std_msgs
74-
# )
79+
generate_messages(
80+
DEPENDENCIES
81+
std_msgs
82+
)
7583

7684
################################################
7785
## Declare ROS dynamic reconfigure parameters ##
@@ -105,7 +113,7 @@ find_package(catkin REQUIRED COMPONENTS
105113
catkin_package(
106114
# INCLUDE_DIRS include
107115
# LIBRARIES pbal
108-
# CATKIN_DEPENDS roscpp rospy std_msgs
116+
CATKIN_DEPENDS roscpp rospy std_msgs message_runtime
109117
# DEPENDS system_lib
110118
)
111119

msg/ControlCommand.msg

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
string name # name of current command
2+
bool command_flag # 0 = absolute, 1 = relative
3+
int8 mode # primitive
4+
5+
# relative commands
6+
float32 delta_theta
7+
float32 delta_x_pivot
8+
float32 delta_s
9+
10+
# absolute commands
11+
float32 theta
12+
float32 x_pivot
13+
float32 s

msg/ControlCommandStamped.msg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Header header
2+
pbal/ControlCommand control_command

msg/FrictionParams.msg

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
float32[] A_pivot_left # A in Ax <= b for left ground friction
2+
float32[] b_pivot_left # b in Ax <= b for left ground friction
3+
float32[] A_pivot_right # A in Ax <= b for right ground friction
4+
float32[] b_pivot_right # b in Ax <= b for right ground friction
5+
bool use_env_left # Use conservative defaults for left if False
6+
bool use_env_right # Use conservative defaults for right if False
7+
8+
float32[] A_robot_left # A in Ax <= b for left robot friction
9+
float32 b_robot_left # b in Ax <= b for left robot friction
10+
float32[] A_robot_right # A in Ax <= b for right robot friction
11+
float32 b_robot_right # b in Ax <= b for right robot friction
12+
bool use_robot # Use conservative defaults if False

msg/FrictionParamsStamped.msg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Header header
2+
pbal/FrictionParams friction_params

msg/GroundTruth.msg

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
# robot kinematics
3+
float32 hand_angle
4+
float32[] hand_pose
5+
float32[] hand_sliding
6+
7+
# object kinematics
8+
float32 object_angle
9+
float32[] object_pose
10+
float32[] object_sliding
11+
float32[] pivot_locations
12+
13+
# ground
14+
float32 ground_angle
15+
16+
# perception
17+
string shape_name
18+
int8 apriltag_id
19+
bool object_dectected

msg/GroundTruthStamped.msg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Header header
2+
pbal/GroundTruth ground_truth

msg/QPDebug.msg

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# primitive info
2+
string name # primitive name
3+
int8 mode # primitive mode
4+
string error_dict_keys # current primitive error keys
5+
float32[] error_dict_vals # current primitive error vals
6+
bool snewrb # did state exist
7+
8+
# QP costs
9+
float32[] quadratic_cost_term # Q in cost: 0.5*dw^T*Q*dw + l^T*dw
10+
float32[] linear_cost_term # l in cost: 0.5*dw^T*Q*dw + l^T*dw
11+
float32[] proj_vec_list # motion directions in cost
12+
float32[] error_list # list of errors?
13+
14+
# QP constraints
15+
string label_list_cnstr # comma constraint names
16+
float32[] constraint_normals # A in A*dw <= b
17+
float32[] constraint_offsets # biq
18+
float32[] measured_wrench # w
19+
float32[] slacks # b in A*dw <= b, equal to A*w - biq
20+
21+
# Solution
22+
float32 solve_time # time to solve [s]
23+
float32[] delta_wrench # solution to QP (dw)
24+
float32[] delta_wrench_unconstrained # solution to QP w/o constraints
25+

msg/QPDebugStamped.msg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Header header
2+
pbal/QPDebug qp_debug

msg/SlidingState.msg

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
bool pivot_sliding_left # True if pivot sliding left
2+
bool pivot_sliding_right # True if pivot sliding right
3+
bool pivot_sliding # pivot_sliding_left || pivot_sliding_right
4+
5+
bool robot_sliding_left # True if pivot sliding left
6+
bool robot_sliding_right # True if pivot sliding right
7+
bool robot_sliding # robot_sliding_left || robot_sliding_right

msg/SlidingStateStamped.msg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Header header
2+
pbal/SlidingState sliding_state

package.xml

+6-4
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,20 @@
3636
<!-- Note that this is equivalent to the following: -->
3737
<!-- <build_depend>roscpp</build_depend> -->
3838
<!-- <exec_depend>roscpp</exec_depend> -->
39-
<!-- Use build_depend for packages you need at compile time: -->
40-
<!-- <build_depend>message_generation</build_depend> -->
4139
<!-- Use build_export_depend for packages you need in order to build against this package: -->
4240
<!-- <build_export_depend>message_generation</build_export_depend> -->
4341
<!-- Use buildtool_depend for build tool packages: -->
4442
<!-- <buildtool_depend>catkin</buildtool_depend> -->
45-
<!-- Use exec_depend for packages you need at runtime: -->
46-
<!-- <exec_depend>message_runtime</exec_depend> -->
4743
<!-- Use test_depend for packages you need only for testing: -->
4844
<!-- <test_depend>gtest</test_depend> -->
4945
<!-- Use doc_depend for packages you need only for building documentation: -->
5046
<!-- <doc_depend>doxygen</doc_depend> -->
47+
48+
<!-- Use build_depend for packages you need at compile time: -->
49+
<build_depend>message_generation</build_depend>
50+
<!-- Use exec_depend for packages you need at runtime: -->
51+
<exec_depend>message_runtime</exec_depend>
52+
5153
<buildtool_depend>catkin</buildtool_depend>
5254
<build_depend>roscpp</build_depend>
5355
<build_depend>rospy</build_depend>

0 commit comments

Comments
 (0)