simulator
simulator copied to clipboard
Why the "steer" value in simulator published not same with setting value?
Hello, I set auto control = lgsvl_msgs::msg::VehicleControlData(); control.target_gear = lgsvl_msgs::msg::VehicleControlData::GEAR_DRIVE; control.acceleration_pct = _sampledrive.get_throttle(); // value is 0.5 control.target_wheel_angle = _sampledrive.get_steer(); // value is -0.5 control_pub->publish(control); But look the screenshot, [INFO] [msg_publish_subscribe]: Publishing: '40', acceleration_pct: '0.500000', target_wheel_angle: '-0.500000' not same with AD Steer Input & Steering(value is 0.7271038) Why?
Sorry, it's OK, seems to be my problem, because I found that the steering angle (rad) should be released from the AD stack, so that it can correspond after normalization. Thanks.
I have uploaded the map in svl but my map is not appearing when I run the simulator. Can you help