File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ void MyModuleInit(RTC::Manager* manager)
1717 RTC::RtcBase* comp;
1818
1919 // Create a component
20- comp = manager->createComponent (" PointCloudROSBridge" );
21-
20+ comp = manager->createComponent (std::string (" PointCloudROSBridge?instance_name=" +ros::this_node::getName ().substr (ros::this_node::getNamespace ().length ())).c_str ());
2221
2322 // Example
2423 // The following procedure is examples how handle RT-Components.
Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ void MyModuleInit(RTC::Manager* manager)
1717 RTC::RtcBase* comp;
1818
1919 // Create a component
20- comp = manager->createComponent (" RangeSensorROSBridge" );
21-
20+ comp = manager->createComponent (std::string (" RangeSensorROSBridge?instance_name=" +ros::this_node::getName ().substr (ros::this_node::getNamespace ().length ())).c_str ());
2221
2322 // Example
2423 // The following procedure is examples how handle RT-Components.
You can’t perform that action at this time.
0 commit comments