Open
Description
Some errors have detailed explanations: E0433, E0560.
For more information about an error, try `rustc --explain E0433`.
error: could not compile `lanelet_rs` (bin "lanelet_publisher") due to 3 previous errors; 1 warning emitted
error[E0308]: mismatched types
--> src/lanelet_subscriber.rs:73:28
|
73 | stamp: self.node.get_clock().now().to_ros_msg().unwrap()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `builtin_interfaces::msg::Time`, found `Time`
|
= note: `Time` and `builtin_interfaces::msg::Time` have similar names, but are actually distinct types
note: `Time` is defined in crate `rclrs`
--> /ros_ws/install/rclrs/share/rclrs/rust/src/vendor/builtin_interfaces/msg.rs:223:1
|
223 | pub struct Time {
| ^^^^^^^^^^^^^^^
note: `builtin_interfaces::msg::Time` is defined in crate `builtin_interfaces`
--> /ros_ws/install/builtin_interfaces/share/builtin_interfaces/rust/src/msg.rs:185:1
|
185 | pub struct Time {
| ^^^^^^^^^^^^^^^
error[E0599]: no method named `sec` found for struct `Time` in the current scope
--> src/lanelet_path_cross_product.rs:78:34
|
78 | sec: now.sec(),
| ^^^ method not found in `Time`
error[E0599]: no method named `nanosec` found for struct `Time` in the current scope
--> src/lanelet_path_cross_product.rs:79:38
How do you imagine how the timestamp should be filled properly and why does this error first occur today? What have you done?
Metadata
Metadata
Assignees
Labels
No labels