Skip to content

Commit

Permalink
fixed small bug with retrieving individual objects
Browse files Browse the repository at this point in the history
  • Loading branch information
WouterJansen committed Apr 5, 2024
1 parent 386c20f commit f557c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros/python_ws/src/airsim/scripts/airsim_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def get_object_pose_ros_message(c, object_pose_individual_coordinates_local, cur
cur_pose = c.simGetObjectPose(cur_object_name, True)
else:
cur_pose = c.simGetObjectPose(cur_object_name, False)
if np.isnan(pose.position.x_val):
if np.isnan(cur_pose.position.x_val):
if cur_warning_issued is False:
cur_rospy.logwarn("Object '" + cur_object_name + "' could not be found.")
warning_issued_result = True
Expand Down

0 comments on commit f557c0c

Please sign in to comment.