-
Notifications
You must be signed in to change notification settings - Fork 998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix resource management in UAS node #1961
base: ros2
Are you sure you want to change the base?
Changes from all commits
feef01f
0ce85fe
1bfdd5a
ff8b485
fe0e21d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,9 +45,9 @@ class SetPositionTargetLocalNEDMixin | |
void set_position_target_local_ned( | ||
uint32_t time_boot_ms, uint8_t coordinate_frame, | ||
uint16_t type_mask, | ||
Eigen::Vector3d p, | ||
Eigen::Vector3d v, | ||
Eigen::Vector3d af, | ||
Eigen::Vector3d const & p, | ||
Eigen::Vector3d const & v, | ||
Eigen::Vector3d const & af, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What for? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For not copying There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's usually questionable thing, what's faster - just copy 4 float64's or access trough a pointer all fields. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "just copy 4 float64's" -- 9 doubles, to be precise; which is 72 bytes. "or access trough a pointer all fields" -- how do you think the fields are accessed if the object is passed by value?
|
||
float yaw, float yaw_rate) | ||
{ | ||
static_assert( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why to move that into cpp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S.t. all plugins don't have to recompile when something changes here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it's rarely changed, and if so, I'd prefer to recompile everything...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you prefer to recompile everything?