Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shtrophic committed Mar 25, 2024
1 parent ea194de commit bc0e73b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Camera
bool setBool(const std::string & nodeName, bool v);
bool execute(const std::string & nodeName);
bool readParameterDefinitionFile();

rclcpp::Time getAdjustedTimeStamp(uint64_t t, int64_t sensorTime);

void run(); // thread
Expand Down
6 changes: 4 additions & 2 deletions spinnaker_camera_driver/src/genicam_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ void get_nodemap_as_string(std::stringstream & ss, Spinnaker::CameraPtr cam)
ss << s;
}

static std::optional<CNodePtr> find_node(const std::string & path, CNodePtr & node, bool debug, bool allow_unreadable)
static std::optional<CNodePtr> find_node(
const std::string & path, CNodePtr & node, bool debug, bool allow_unreadable)
{
// split off first part
auto pos = path.find("/");
Expand Down Expand Up @@ -90,7 +91,8 @@ static std::optional<CNodePtr> find_node(const std::string & path, CNodePtr & no
return (std::nullopt);
}

std::optional<CNodePtr> find_node(const std::string & path, Spinnaker::CameraPtr cam, bool debug, bool allow_unreadable)
std::optional<CNodePtr> find_node(
const std::string & path, Spinnaker::CameraPtr cam, bool debug, bool allow_unreadable)
{
INodeMap & appLayerNodeMap = cam->GetNodeMap();
CNodePtr rootNode = appLayerNodeMap.GetNode("Root");
Expand Down

0 comments on commit bc0e73b

Please sign in to comment.