Skip to content

Commit 4fa8eac

Browse files
committed
Set default IP in examples to external IP address of container
In my opinion this is clearer to users that they'll have to provide the robot's IP in that case. Also, when run with the start_ursim.sh script this will work right out of the box
1 parent 14ace41 commit 4fa8eac

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/dashboard_example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ using namespace urcl;
2828

2929
// In a real-world example it would be better to get those values from command line parameters / a
3030
// better configuration system such as Boost.Program_options
31-
const std::string DEFAULT_ROBOT_IP = "10.53.253.22";
31+
const std::string DEFAULT_ROBOT_IP = "192.168.56.101";
3232

3333
// We need a callback function to register. See UrDriver's parameters for details.
3434

examples/full_driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ using namespace urcl;
3939

4040
// In a real-world example it would be better to get those values from command line parameters / a
4141
// better configuration system such as Boost.Program_options
42-
const std::string DEFAULT_ROBOT_IP = "127.0.0.1";
42+
const std::string DEFAULT_ROBOT_IP = "192.168.56.101";
4343
const std::string SCRIPT_FILE = "resources/external_control.urscript";
4444
const std::string OUTPUT_RECIPE = "examples/resources/rtde_output_recipe.txt";
4545
const std::string INPUT_RECIPE = "examples/resources/rtde_input_recipe.txt";

examples/primary_pipeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ using namespace urcl;
3434

3535
// In a real-world example it would be better to get those values from command line parameters / a better configuration
3636
// system such as Boost.Program_options
37-
const std::string DEFAULT_ROBOT_IP = "127.0.0.1";
37+
const std::string DEFAULT_ROBOT_IP = "192.168.56.101";
3838

3939
int main(int argc, char* argv[])
4040
{

examples/primary_pipeline_calibration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class CalibrationConsumer : public urcl::comm::IConsumer<urcl::primary_interface
6161

6262
// In a real-world example it would be better to get those values from command line parameters / a better configuration
6363
// system such as Boost.Program_options
64-
const std::string DEFAULT_ROBOT_IP = "127.0.0.1";
64+
const std::string DEFAULT_ROBOT_IP = "192.168.56.101";
6565

6666
int main(int argc, char* argv[])
6767
{

examples/rtde_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ using namespace urcl;
3535

3636
// In a real-world example it would be better to get those values from command line parameters / a better configuration
3737
// system such as Boost.Program_options
38-
const std::string DEFAULT_ROBOT_IP = "127.0.0.1";
38+
const std::string DEFAULT_ROBOT_IP = "192.168.56.101";
3939
const std::string OUTPUT_RECIPE = "examples/resources/rtde_output_recipe.txt";
4040
const std::string INPUT_RECIPE = "examples/resources/rtde_input_recipe.txt";
4141
const std::chrono::milliseconds READ_TIMEOUT{ 100 };

0 commit comments

Comments
 (0)