Skip to content

Commit 9c40753

Browse files
committed
Miscellaneous TODO comments
1 parent 6355bee commit 9c40753

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

include/hydroc/core/hydro_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace hydrochrono::hydro {
2323
* Force vector [Fx, Fy, Fz, Mx, My, Mz] for surge, sway, heave,
2424
* roll, pitch, yaw degrees of freedom.
2525
*/
26-
using GeneralizedForce = Eigen::VectorXd;
26+
using GeneralizedForce = Eigen::VectorXd; //// RADU - why is this not an Eigen vector of fixed size 6, or better yet 2 vectors?
2727

2828
/**
2929
* @brief Forces for all bodies in the system.

include/hydroc/logging.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
1313
*/
1414

15+
//// RADU - does this need to be public?
16+
1517
#pragma once
1618

1719
#include <cstddef>

src/hydro/chrono/chrono_state_utils.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ void BuildSystemStateFromChronoBodies(
1818
for (const auto& body : bodies) {
1919
BodyState body_state;
2020

21+
//// RADU - why not simply do:
22+
////body_state.position = body->GetPos().eigen();
23+
////body_state.orientation_rpy = body->GetRot().GetCardanAnglesXYZ().eigen();
24+
////body_state.linear_velocity = body->GetPosDt().eigen();
25+
////body_state.angular_velocity = body->GetAngVelParent().eigen();
26+
2127
// Extract position and orientation
2228
const chrono::ChVector3d position_world = body->GetPos();
2329
const chrono::ChVector3d rotation_rpy = body->GetRot().GetCardanAnglesXYZ();

0 commit comments

Comments
 (0)