A forklift comprising: a vehicle body; a fork mounted on the vehicle body; a controller configured to adjust a position and an orientation of the vehicle body; a laser sensor configured to measure distance data from the laser sensor to an object existing in a space set forward of the fork; a control commander configured to, when the distance data measured by the laser sensor includes a pallet to be lifted, generate track data for moving the vehicle body to a loading position of the pallet based on the distance data, and provide a command to the controller using the generated track data; and a lift mechanism configured to move the fork up and down with respect to the vehicle body, wherein the laser sensor is configured to measure a distance from the laser sensor to an object in a scanning plane by scanning laser light in a first direction, the laser sensor is mounted on the fork and is configured to measure three-dimensional distance data from the laser sensor to the object existing in the space set forward of the fork by using an up and down motion of the fork by the lift mechanism in a direction which is different from the first direction, and the control commander is configured to execute the following steps: (a) acquiring an observation point group from the distance data acquired from the laser sensor; (b) determining whether or not a point group constituting a straight line can be extracted from the observation point group; (c) determining whether or not a length of the point group constituting the straight line is substantially equal to a width of the pallet; and (d) determining whether or not the straight line is constituted of three line segments, such that the control commander identifies a position and an orientation of the pallet based on the distance data, and generates the track data based on the identified position and orientation of the pallet. a vehicle body; a fork mounted on the vehicle body; a controller configured to adjust a position and an orientation of the vehicle body; a laser sensor configured to measure distance data from the laser sensor to an object existing in a space set forward of the fork; a control commander configured to, when the distance data measured by the laser sensor includes a pallet to be lifted, generate track data for moving the vehicle body to a loading position of the pallet based on the distance data, and provide a command to the controller using the generated track data; and a lift mechanism configured to move the fork up and down with respect to the vehicle body, wherein the laser sensor is configured to measure a distance from the laser sensor to an object in a scanning plane by scanning laser light in a first direction, the laser sensor is mounted on the fork and is configured to measure three-dimensional distance data from the laser sensor to the object existing in the space set forward of the fork by using an up and down motion of the fork by the lift mechanism in a direction which is different from the first direction, and the control commander is configured to execute the following steps: (a) acquiring an observation point group from the distance data acquired from the laser sensor; (b) determining whether or not a point group constituting a straight line can be extracted from the observation point group; (c) determining whether or not a length of the point group constituting the straight line is substantially equal to a width of the pallet; and (d) determining whether or not the straight line is constituted of three line segments, (a) acquiring an observation point group from the distance data acquired from the laser sensor; (b) determining whether or not a point group constituting a straight line can be extracted from the observation point group; (c) determining whether or not a length of the point group constituting the straight line is substantially equal to a width of the pallet; and (d) determining whether or not the straight line is constituted of three line segments, such that the control commander identifies a position and an orientation of the pallet based on the distance data, and generates the track data based on the identified position and orientation of the pallet.