Can CarMaker receive geometry messages and make them move in the simulation?

Hello everyone!

My current environment is:

  • ROS2 Humble
  • CarMaker 14.0

I have confirmed that the simulation works by sending Gas, Steering Angle, and Brake values from ROS to CarMaker.

Now, I want to send x, y, z coordinates along with roll, pitch, and yaw values using a geometry message and see the vehicle move accordingly in the simulation. However, I am not sure how to do this.

In CarMaker, updating the Gas, Steering, and Brake values inside the userVehicleControlCalc function successfully moves the vehicle. However, updating the position within the same function does not work.

Which function should I use to update the position correctly?

Thank U

Hi geantae,

I am a bit confuse with what you are trying to do here. If you pass Gas, Brake and Steering to the CM vehicle, the vehicle will move and it will be varying the position, roll, pitch and roll according to the vehicle model and your inputs.