Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/display map msg #2485

Merged
merged 34 commits into from
Feb 11, 2025
Merged

Feature/display map msg #2485

merged 34 commits into from
Feb 11, 2025

Conversation

MishkaMN
Copy link
Contributor

@MishkaMN MishkaMN commented Feb 10, 2025

PR Details

Description

This PR allows the j2735 MAP msg to be visualized in the rviz
If the user wants to disable the view, they can turn the J2735 Map Msg marker off in rviz (the topic name in the pic says 2735, but the code corrected it to J2735).

image

I also updated the MAP msg creation document for CDASim to include this step
https://usdot-carma.atlassian.net/wiki/spaces/CRMSIM/pages/2619113473/Generating+MAP+uper+and+SPAT+messages+for+non-existent+intersections+in+cdasim

Related GitHub Issue

NA

Related Jira Key

TT-153

Motivation and Context

Creating MAP msg in Town05 requires iterative process of modifying lane geometry to get picked up by carma-platform correctly. This PR makes it easy to visualize where the offsets are falling so the developer can modify MAP message more easliy.

How Has This Been Tested?

tested on local pc with MAP msg sample for TFHRC, see the pic

Types of changes

  • Defect fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that cause existing functionality to change)

Checklist:

  • I have added any new packages to the sonar-scanner.properties file
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@MishkaMN MishkaMN requested a review from adev4a February 10, 2025 05:07
@MishkaMN MishkaMN self-assigned this Feb 10, 2025
@MishkaMN MishkaMN added the enhancement New feature or request label Feb 10, 2025
Copy link
Contributor

@adev4a adev4a left a comment

Choose a reason for hiding this comment

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

lgtm, some small comments. Also in terms of display does rviz remove the visualization when the message broadcasts stops?

{}
carma_1/radar/radar_fl:
radar_fc:
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably a good chance to remove these unused radar topics

Copy link
Contributor Author

@MishkaMN MishkaMN Feb 11, 2025

Choose a reason for hiding this comment

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

removed

auto j2735_intersection_id = sim_->regem_id_to_intersection_id_[intersection->id()];
for (auto pt: sim_->intersection_nodes_[j2735_intersection_id])
{
RCLCPP_DEBUG_STREAM(rclcpp::get_logger("carma_wm_ctrl"), "Printing x: " << pt.x() << ", y: " << pt.y());
Copy link
Contributor

Choose a reason for hiding this comment

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

If this debug statement is useful can we add some more information about what we are printing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added descriptive msg

@MishkaMN
Copy link
Contributor Author

lgtm, had some small comments. Also in terms of display does rviz remove the visualization when the message broadcasts stops?

It doesn't remove them when the broadcasting stops because if it is being displayed it means it is already processed by the carma-platform, so it does make sense it still visualizes. I understand how it maybe helpful when noticing MAP msg stopped broadcasting. However, we can check ros topic for it. Moreover, I believe currently not only it won't delete the MAP msg if it stops broadcasting, It also won't delete and remove the previous MAP msg if the MAP msg changed. However, both I think are very unlikely to happen in real world

@MishkaMN MishkaMN merged commit a880719 into develop Feb 11, 2025
2 of 3 checks passed
@MishkaMN MishkaMN deleted the feature/display-map-msg branch February 11, 2025 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants