diff --git a/codesamples/apis.json b/codesamples/apis.json index 5babe1fd8..36e2f0cfb 100644 --- a/codesamples/apis.json +++ b/codesamples/apis.json @@ -1,43 +1,43 @@ { "base": { - "client": "BaseClient", + "client": "Base", "func": "is_moving", "args": [] }, "camera": { - "client": "CameraClient", + "client": "Camera", "func": "get_image", "args": [ "std::string(\"image/png\")" ], "comment": "Note that the supplied MIME type is just a placeholder. Please update as necessary." }, "encoder": { - "client": "EncoderClient", + "client": "Encoder", "func": "get_properties", "args": [] }, "motion": { - "client": "MotionClient", + "client": "Motion", "func": "get_pose", "args": ["{{\"rdk\", \"component\", \"fake\"}, \"\", \"component\"}", "", "{}", "nullptr"], "comment": "Update with correct component name, destination frame, supplemental transforms, and extra params" }, "motor": { - "client": "MotorClient", + "client": "Motor", "func": "is_moving", "args": [] }, "movement_sensor": { - "client": "MovementSensorClient", + "client": "MovementSensor", "func": "get_linear_velocity", "args": [] }, "power_sensor": { - "client": "PowerSensorClient", + "client": "PowerSensor", "func": "get_voltage", "args": [] }, "sensor": { - "client": "SensorClient", + "client": "Sensor", "func": "get_readings", "args": [] } diff --git a/src/viam/examples/dial/example_dial.cpp b/src/viam/examples/dial/example_dial.cpp index aa54130fa..8f18e264b 100644 --- a/src/viam/examples/dial/example_dial.cpp +++ b/src/viam/examples/dial/example_dial.cpp @@ -43,7 +43,7 @@ int main() { std::vector resource_names = robot->resource_names(); std::cout << "Resources" << std::endl; for (const Name& resource : resource_names) { - std::cout << "\t" << resource << "\n" << std::endl; + std::cout << "\t" << resource << "\n"; } // ensure we can query statuses diff --git a/src/viam/examples/dial_api_key/example_dial_api_key.cpp b/src/viam/examples/dial_api_key/example_dial_api_key.cpp index 09135b191..c894b26c5 100644 --- a/src/viam/examples/dial_api_key/example_dial_api_key.cpp +++ b/src/viam/examples/dial_api_key/example_dial_api_key.cpp @@ -44,7 +44,7 @@ int main() { std::vector resource_names = robot->resource_names(); std::cout << "Resources" << std::endl; for (const Name& resource : resource_names) { - std::cout << "\t" << resource << "\n" << std::endl; + std::cout << "\t" << resource << "\n"; } // ensure we can query statuses diff --git a/src/viam/sdk/robot/client.cpp b/src/viam/sdk/robot/client.cpp index 2d2b564f0..2f2038f6f 100644 --- a/src/viam/sdk/robot/client.cpp +++ b/src/viam/sdk/robot/client.cpp @@ -311,7 +311,9 @@ RobotClient::RobotClient(std::shared_ptr channel) : channel_(channel->channel()), viam_channel_(std::move(channel)), should_close_channel_(false), - impl_(std::make_unique(RobotService::NewStub(channel_))) {} + impl_(std::make_unique(RobotService::NewStub(channel_))) { + Registry::initialize(); +} std::vector RobotClient::resource_names() const { const std::lock_guard lock(lock_);