Skip to content

Occupancy grid map placed at sensor_frame instead of base_frame #4202

Closed Answered by YoshiRi
tseco15 asked this question in Q&A
Discussion options

You must be logged in to vote

The robot_pose is obtained fromt input_raw_msg here. In our case, the frame_id of the raw_pointcloud we use as input is os_lidar, so robot.pose.z provides the height of the os_lidar link, instead of base_link. Am I right?

That's right! Now I understood what happened.

robot_pose = utils::getPose(input_raw_msg->header, *tf2_, map_frame_);
// upper line will cause robot pose described in input_raw_msg frame

So I think the correspondent part should be fixed like:

robot_pose = utils::getPose(input_raw_msg->header, *tf2_, base_link_frame_, map_frame_);

Could you try and check it?

I created PR.
autowarefoundation/autoware.universe#6485

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@badai-nguyen
Comment options

Comment options

You must be logged in to vote
3 replies
@tseco15
Comment options

@YoshiRi
Comment options

YoshiRi Feb 23, 2024
Collaborator

Answer selected by YoshiRi
@tseco15
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
component:perception Advanced sensor data processing and environment understanding.
3 participants