Skip to content

Commit

Permalink
resurrect usb camera
Browse files Browse the repository at this point in the history
  • Loading branch information
hanappe committed May 23, 2024
1 parent 136da05 commit 0b201eb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions applications/romi-remote-client/src/main_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ int main(int argc, char** argv)

rcom::Address remote_address(romi::ScriptHubListeningPort);

if (options.is_set(romi::RoverOptions::registry)) {
std::string ip = options.get_value(romi::RoverOptions::registry);
if (options.is_set(romi::RoverOptions::kRegistry)) {
std::string ip = options.get_value(romi::RoverOptions::kRegistry);
r_info("Registry IP set to %s", ip.c_str());
remote_address.set(ip.c_str(), romi::ScriptHubListeningPort);
}
Expand Down
2 changes: 1 addition & 1 deletion applications/romi-rover/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ int main(int argc, char** argv)
nlohmann::json config = nlohmann::json::parse(ifs);

// Registry
std::string registry = options.get_value(romi::RoverOptions::registry);
std::string registry = options.get_value(romi::RoverOptions::kRegistry);
if (!registry.empty())
rcom::RegistryServer::set_address(registry.c_str());

Expand Down
10 changes: 5 additions & 5 deletions applications/weeder/eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,18 @@ static std::vector<romi::Option> eval_options = {

// File paths

{ romi::RoverOptions::config, true, "config.json",
{ romi::RoverOptions::kConfig, true, "config.json",
"Path of the config file" },

{ romi::RoverOptions::session_directory, true, ".",
{ romi::RoverOptions::kSessionDirectory, true, ".",
"The session directory where the output "
"files are stored (logs, images...)"},

{ romi::RoverOptions::camera_classname, true, romi::FileCamera::ClassName,
{ romi::RoverOptions::kCameraClassname, true, romi::FileCamera::ClassName,
"The classname of the camera to instanciate "
"(default: file-camera)."},

{ romi::RoverOptions::camera_image, true, nullptr,
{ romi::RoverOptions::kCameraImage, true, nullptr,
"The path of the image file for the file camera."},

{ kCNCControllerClassname.c_str(), true, romi::FakeCNCController::ClassName,
Expand Down Expand Up @@ -129,7 +129,7 @@ int main(int argc, char** argv)
exit(0);
}

std::string path = options.get_value(romi::RoverOptions::config);
std::string path = options.get_value(romi::RoverOptions::kConfig);
if (path.empty())
throw std::runtime_error("No configuration file was given");

Expand Down
2 changes: 1 addition & 1 deletion config/cablebot-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
]
},
"external-camera": {
"executable": "/home/hanappe/projects/ROMI/github/rover/romi-rover-build-and-test/applications/romi-cablebot/vgrabbj/grab.sh",
"path": "/home/romi/romi-rover-build-and-test/applications/romi-cablebot/libcamera/grab.sh",
"height": 1080,
"width": 1920
},
Expand Down
2 changes: 1 addition & 1 deletion librcom

0 comments on commit 0b201eb

Please sign in to comment.