Closed xiaozhi12345678 closed 5 years ago
You can send an AbsoluteTrajectoryWithID-message to the simulation management on this topic for instance.
GPS positions are only supported as initialization, afterwards, the movement of all objects need to be in Cartesian coordinates (x,y). You can, however, internally project lat/lon to x/y and back as you like.
I am sorry to trouble you, that I write a node to publish (x,y) position on the topic "/sim/object_initialization",is it necessary to shielding planning node in sample_vehicle.launch?And the terminal print "/localization_mgmt: Received DesiredMotionAbsolute of Object that does not exist! I discard this message! (id=1)",the car didn't move. Is there something don't do?thank you!
Sorry, I can't trace your problem with this information. You could fork the repos you changed and refer the specific lines, such that I could have a look.
The position must not be published under /sim/object_initialization
, but under /sim/desired_motion_absolute
or /sim/desired_motion
, further, I strongly recommend to use and pass the launchfile arguments.
Emm, hello ,I use the function findnearest to locate GPS point in which lanelet,but it didn't find correct lanelet id. And my osm map is in China,I modify the origin in code. I selected GPS point in my osm map with JOSM,in JOSM I use utm 50N projection,but I think the projection doesn't matter because I make comparing with different projection in JOSM with same location and their GPS similarily. Is there something I need modify?How can I get the right lanelet id?thank you!
Hi,I want to ask a question.If I want to make the car in rviz move by my publishing GPS or (x,y)position message,how can I do it?than you!