File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
extensions/ros2/src/graph Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ void Ros2PublishPointVelocityMarkersNode::ros2ValidateImpl()
34
34
if (!input->isDense ()) {
35
35
throw InvalidPipeline (fmt::format (" {} requires a compacted point cloud (dense)" , getName ()));
36
36
}
37
-
38
- if (!input->hasField (RGL_FIELD_DYNAMIC_FORMAT)) {
39
- auto msg = fmt::format (" {} requires a formatted point cloud" , getName ());
40
- throw InvalidPipeline (msg);
41
- }
42
37
}
43
38
void Ros2PublishPointVelocityMarkersNode::ros2EnqueueExecImpl ()
44
39
{
Original file line number Diff line number Diff line change @@ -264,11 +264,10 @@ extern "C" __global__ void __closesthit__()
264
264
Vec3f absPointVelocityInSensorFrame = ctx.rayOriginToWorld .rotation ().inverse () * absPointVelocity;
265
265
Vec3f relPointVelocityBasedOnSensorLinearVelocity = absPointVelocityInSensorFrame - ctx.sensorLinearVelocityXYZ ;
266
266
267
- Vec3f distanceOnAxisXYZ = hitWorld - origin ;
268
- Vec3f relPointVelocityBasedOnSensorAngularVelocity = Vec3f (.0f ) - ctx.sensorAngularVelocityRPY .cross (distanceOnAxisXYZ );
267
+ Vec3f hitRays = ctx. rayOriginToWorld . inverse () * hitWorld ;
268
+ Vec3f relPointVelocityBasedOnSensorAngularVelocity = Vec3f (.0f ) - ctx.sensorAngularVelocityRPY .cross (hitRays );
269
269
relPointVelocity = relPointVelocityBasedOnSensorLinearVelocity + relPointVelocityBasedOnSensorAngularVelocity;
270
270
271
- Vec3f hitRays = ctx.rayOriginToWorld .inverse () * hitWorld;
272
271
radialSpeed = hitRays.normalized ().dot (relPointVelocity);
273
272
}
274
273
You can’t perform that action at this time.
0 commit comments