Skip to content

jros2 conversion - #241

Merged
ds58 merged 9 commits into
developfrom
jros2-conversion-2
Jul 6, 2026
Merged

jros2 conversion#241
ds58 merged 9 commits into
developfrom
jros2-conversion-2

Conversation

@ds58

@ds58 ds58 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Migration from the legacy IHMC ROS 2 stack to jros2.

@ds58
ds58 force-pushed the jros2-conversion-2 branch from 6114801 to 132f83d Compare June 3, 2026 18:50
@ds58
ds58 marked this pull request as ready for review June 22, 2026 15:07
@ds58 ds58 changed the title [WIP] jros2 conversion jros2 conversion Jun 22, 2026
Comment thread scs2-session-logger/src/main/java/us/ihmc/scs2/session/log/LogDataReader.java Outdated
Comment thread scs2-session-logger/src/main/java/us/ihmc/scs2/session/log/LogDataReader.java Outdated
Comment thread scs2-session-logger/src/main/java/us/ihmc/scs2/session/log/LogDataReader.java Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this diff.. can we trust it?

Comment thread scs2-session-logger/build.gradle.kts Outdated
api("us.ihmc:scs2-simulation:source") // TODO Need to fix this, it needs the Robot.

api("us.ihmc:ihmc-robot-data-logger:0.37.3")
api("us.ihmc:ihmc-robot-data-logger:source")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need to be undone, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +115 to +121
return "CAPTURE_CARD_MAGEWELL".equals(type) || "Magewell".equals(type);
}

static boolean isBlackMagicCamera(Camera camera)
{
String type = camera.getTypeAsString();
return "CAPTURE_CARD".equals(type) || "Capture Card".equals(type);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More magic strings that used to be static fields in messages

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, can we avoid this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't avoid this due to the way the logger is designed. It's due to the fact that Camera and CameraType classes are generated from .msg. We do not support enums in this case.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we revert this file change? This method is more confusing and is wrong. Develop was fine for this file

Comment on lines +115 to +121
return "CAPTURE_CARD_MAGEWELL".equals(type) || "Magewell".equals(type);
}

static boolean isBlackMagicCamera(Camera camera)
{
String type = camera.getTypeAsString();
return "CAPTURE_CARD".equals(type) || "Capture Card".equals(type);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, can we avoid this?

return new FrameRamp3D(referenceFrame, toRamp3D(originPose, ramp3DDefinition));
else if (definition instanceof ModelFileGeometryDefinition modelFileGeometryDefinition)
{
if (modelFileGeometryDefinition.getFileName() == null || modelFileGeometryDefinition.getFileName().isBlank())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this? Is this related to this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to keep it because it adds safety. I was running into a bunch of exceptions with missing model file names

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do this in a different PR then? What exceptions? Do we get those on develop?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted

@ds58
ds58 force-pushed the jros2-conversion-2 branch from 71b246c to 1f0f1d8 Compare July 1, 2026 19:54
@ds58
ds58 requested review from PotatoPeeler3000 and TomaszTB July 2, 2026 21:15
// For legacy logs we need to check what the batch size is
int storedBatchSize = logProperties.getVariables().getCompressionBatchSize();
batchSize = storedBatchSize <= 0 ? 1 : storedBatchSize;
long storedBatchSize = logProperties.getVariables().getCompressionBatchSize();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't you just cast to int here

@ds58
ds58 force-pushed the jros2-conversion-2 branch from b1ddb01 to 43f2a27 Compare July 6, 2026 14:27
Comment thread scs2-session-logger/build.gradle.kts Outdated
api("us.ihmc:scs2-simulation:source") // TODO Need to fix this, it needs the Robot.

api("us.ihmc:ihmc-robot-data-logger:0.37.3")
api("us.ihmc:ihmc-robot-data-logger:source")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +115 to +121
return "CAPTURE_CARD_MAGEWELL".equals(type) || "Magewell".equals(type);
}

static boolean isBlackMagicCamera(Camera camera)
{
String type = camera.getTypeAsString();
return "CAPTURE_CARD".equals(type) || "Capture Card".equals(type);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@ds58
ds58 merged commit d00788d into develop Jul 6, 2026
3 checks passed
@ds58
ds58 deleted the jros2-conversion-2 branch July 6, 2026 18:39
PotatoPeeler3000 pushed a commit that referenced this pull request Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants