Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and cbrxyz committed Jul 18, 2024
1 parent 3e8037a commit 8e09486
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ def _object_in_frame(self, object_point):

px = np.array(self.camera_model.project3dToPixel(object_point))
resolution = self.camera_model.fullResolution()
return not (np.any([0, 0] > px) or np.any(px > resolution))
return not (np.any(px < [0, 0]) or np.any(px > resolution))


if __name__ == "__main__":
Expand Down
13 changes: 6 additions & 7 deletions SubjuGator/simulation/subjugator_gazebo/src/subjugator_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ class WorldPluginTutorial : public WorldPlugin
// Make sure the ROS node for Gazebo has already been initialized
if (!ros::isInitialized())
{
ROS_FATAL_STREAM("A ROS node for Gazebo has not been initialized, unable to load plugin. "
<< "Load the Gazebo "
"system plugin "
"'libgazebo_ros_"
"api_plugin.so' in "
"the gazebo_ros "
"package)");
ROS_FATAL_STREAM("A ROS node for Gazebo has not been initialized, unable to load plugin. " << "Load the Gazebo "
"system plugin "
"'libgazebo_ros_"
"api_plugin.so' in "
"the gazebo_ros "
"package)");
return;
}

Expand Down

0 comments on commit 8e09486

Please sign in to comment.