simulator icon indicating copy to clipboard operation
simulator copied to clipboard

Why the "steer" value in simulator published not same with setting value?

Open hanyh1191 opened this issue 2 years ago • 2 comments

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?

2022-04-12 18-25-45 的屏幕截图

hanyh1191 avatar Apr 12 '22 10:04 hanyh1191

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.

hanyh1191 avatar Apr 25 '22 10:04 hanyh1191

I have uploaded the map in svl but my map is not appearing when I run the simulator. Can you help

AmanShamsheerSheikh avatar Jul 11 '22 08:07 AmanShamsheerSheikh