Skip to content

[ewok_simulation/src/trajectory_replanning_example.cpp] Initialization of offset is wrong #19

@Flighy

Description

@Flighy

Hi. I think there is a problem in line 145 of 'trajectory_replanning_example.cpp.'
As far as I understand, offset in Ring Buffer is the lower left corner of the map. However, it seems that you are setting the sensor origin as offset in initialization step(line 139-147). Well, in your simulation case there was no problem, but in the situation of me this caused the problem.

Eigen::Vector3i _OFF(_N_2, _N_2, _N_2);
edrb->setOffset(idx - _OFF);

It would be nice to change line145 this way.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions