-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsolver_statistics_stamp_rule.bmr
96 lines (85 loc) · 2.98 KB
/
solver_statistics_stamp_rule.bmr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
class update_crocoddyl_msgs_SolverStatistics_85d76e05fe43e97529e2f644592811cd(MessageUpdateRule):
old_type = "crocoddyl_msgs/SolverStatistics"
old_full_text = """
# This message provides essential diagnostics information for Crocoddyl solvers.
# This is a message that holds data to diagnostics Crocoddyl solvers.
#
# The solver statistics is defined by:
# * the solver iterations,
# * the total computation time,
# * the total solving time,
# * the total cost,
# * the solver regularization,
# * the applied step length,
# * the dynamic feasibility,
# * the equality constraints feasibility, and
# * the inequality constraints feasibility.
time stamp
uint16 iterations
float32 total_time
float32 solve_time
float32 cost
float32 regularization
float32 step_length
float32 dynamic_feasibility
float32 equality_feasibility
float32 inequality_feasibility
"""
new_type = "crocoddyl_msgs/SolverStatistics"
new_full_text = """
# This message provides essential diagnostics information for Crocoddyl solvers.
# This is a message that holds data to diagnostics Crocoddyl solvers.
#
# The solver statistics is defined by:
# * the solver iterations,
# * the total computation time,
# * the total solving time,
# * the total cost,
# * the solver regularization,
# * the applied step length,
# * the dynamic feasibility,
# * the equality constraints feasibility, and
# * the inequality constraints feasibility.
# This represents the time and frame at which the message is published
std_msgs/Header header
uint16 iterations
float32 total_time
float32 solve_time
float32 cost
float32 regularization
float32 step_length
float32 dynamic_feasibility
float32 equality_feasibility
float32 inequality_feasibility
================================================================================
MSG: std_msgs/Header
# Standard metadata for higher-level stamped data types.
# This is generally used to communicate timestamped data
# in a particular coordinate frame.
#
# sequence ID: consecutively increasing ID
uint32 seq
#Two-integer timestamp that is expressed as:
# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')
# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')
# time-handling sugar is provided by the client library
time stamp
#Frame this data is associated with
string frame_id
"""
order = 0
migrated_types = []
valid = False
def update(self, old_msg, new_msg):
#No matching field name in old message
new_msg.header = self.get_new_class('std_msgs/Header')()
new_msg.iterations = old_msg.iterations
new_msg.total_time = old_msg.total_time
new_msg.solve_time = old_msg.solve_time
new_msg.cost = old_msg.cost
new_msg.regularization = old_msg.regularization
new_msg.step_length = old_msg.step_length
new_msg.dynamic_feasibility = old_msg.dynamic_feasibility
new_msg.equality_feasibility = old_msg.equality_feasibility
new_msg.inequality_feasibility = old_msg.inequality_feasibility
#No field to match field stamp from old message