Skip to content

Commit

Permalink
fix header time develop-humble (#239)
Browse files Browse the repository at this point in the history
<!-- Thanks for the contribution, this is awesome. -->

# PR Details
## Description
develop-humble mirror PR of: 
#231
<!--- Describe your changes in detail -->

## Related GitHub Issue

<!--- This project only accepts pull requests related to open GitHub
issues or Jira Keys -->
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->
<!--- Please DO NOT name partially fixed issues, instead open an issue
specific to this fix -->
<!--- Please link to the issue here: -->

## Related Jira Key

<!-- e.g. CAR-123 -->

## Motivation and Context

<!--- Why is this change required? What problem does it solve? -->

## How Has This Been Tested?

<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->

## Types of changes

<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->

- [ ] 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:

<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->

- [ ] 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**](https://github.com/usdot-fhwa-stol/carma-platform/blob/develop/Contributing.md)
document.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
  • Loading branch information
MishkaMN authored Oct 22, 2024
1 parent 698ddfc commit f0596e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ carma_v2x_msgs::msg::MobilityOperation TrafficIncidentWorker::mobilityMessageGen
{
carma_v2x_msgs::msg::MobilityOperation traffic_mobility_msg;

traffic_mobility_msg.m_header.timestamp = pinpoint_msg.header.stamp.sec * 1000;
traffic_mobility_msg.m_header.timestamp = rclcpp::Time(pinpoint_msg.header.stamp).nanoseconds() / 1e6;
traffic_mobility_msg.m_header.sender_id = sender_id_;

traffic_mobility_msg.strategy = USE_CASE_NAME_;
Expand Down Expand Up @@ -102,4 +102,4 @@ gps_msgs::msg::GPSFix TrafficIncidentWorker::getPinPoint() { return this->pinpoi

double TrafficIncidentWorker::getAdvisorySpeed() { return this->advisory_speed_; }

} // namespace traffic
} // namespace traffic

0 comments on commit f0596e2

Please sign in to comment.