Skip to content

Commit

Permalink
iox-eclipse-iceoryx#381 remove leading slash check from examples
Browse files Browse the repository at this point in the history
Signed-off-by: Dietrich Krönke <dietrich.kroenke@apex.ai>
  • Loading branch information
dkroenke committed Dec 12, 2020
1 parent 283c22b commit e4b954f
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion iceoryx_examples/icedelivery/ice_publisher_bare_metal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static void sigHandler(int f_sig [[gnu::unused]])
void sending()
{
// Create the runtime for registering with the RouDi daemon
iox::runtime::PoshRuntime::initRuntime("/iox-ex-publisher-bare-metal");
iox::runtime::PoshRuntime::initRuntime("iox-ex-publisher-bare-metal");

// Create a publisher
iox::popo::Publisher myPublisher({"Radar", "FrontLeft", "Counter"});
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/icedelivery/ice_publisher_simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static void sigHandler(int f_sig [[gnu::unused]])
void sending()
{
// Create the runtime for registering with the RouDi daemon
iox::runtime::PoshRuntime::initRuntime("/iox-ex-publisher-simple");
iox::runtime::PoshRuntime::initRuntime("iox-ex-publisher-simple");

// create the templateized publisher
TypedPublisher<CounterTopic> myTypedPublisher({"Radar", "FrontRight", "Counter"});
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/icedelivery/ice_subscriber_bare_metal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static void sigHandler(int f_sig [[gnu::unused]])
void receiving()
{
// Create the runtime for registering with the RouDi daemon
iox::runtime::PoshRuntime::initRuntime("/iox-ex-subscriber-bare-metal");
iox::runtime::PoshRuntime::initRuntime("iox-ex-subscriber-bare-metal");

// Create a subscriber
iox::popo::Subscriber mySubscriber({"Radar", "FrontLeft", "Counter"});
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/icedelivery/ice_subscriber_simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void myCallback(const CounterTopic& sample)
void receiving()
{
// Create the runtime for registering with the RouDi daemon
iox::runtime::PoshRuntime::initRuntime("/iox-ex-subscriber-simple");
iox::runtime::PoshRuntime::initRuntime("iox-ex-subscriber-simple");

// Create the typed subscriber and provide the callback, the rest will be executed in middleware context
TypedSubscriber<CounterTopic> myTypedSubscriber({"Radar", "FrontRight", "Counter"}, myCallback);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ int main()
// Register sigHandler for SIGINT
signal(SIGINT, sigHandler);

iox::runtime::PoshRuntime::initRuntime("/iox-ex-publisher-typed-modern");
iox::runtime::PoshRuntime::initRuntime("iox-ex-publisher-typed-modern");

iox::popo::TypedPublisher<Position> typedPublisher({"Odometry", "Position", "Vehicle"});
typedPublisher.offer();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int main()
// Register sigHandler for SIGINT
signal(SIGINT, sigHandler);

iox::runtime::PoshRuntime::initRuntime("/iox-ex-publisher-untyped-modern");
iox::runtime::PoshRuntime::initRuntime("iox-ex-publisher-untyped-modern");

iox::popo::UntypedPublisher untypedPublisher({"Odometry", "Position", "Vehicle"});
untypedPublisher.offer();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ int main()
signal(SIGINT, sigHandler);

// initialize runtime
iox::runtime::PoshRuntime::initRuntime("/iox-ex-subscriber-typed-modern");
iox::runtime::PoshRuntime::initRuntime("iox-ex-subscriber-typed-modern");

// initialized subscribers
iox::popo::TypedSubscriber<Position> typedSubscriber({"Odometry", "Position", "Vehicle"});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ int main()
signal(SIGINT, sigHandler);

// initialize runtime
iox::runtime::PoshRuntime::initRuntime("/iox-ex-subscriber-untyped-modern");
iox::runtime::PoshRuntime::initRuntime("iox-ex-subscriber-untyped-modern");

// initialized subscribers
iox::popo::UntypedSubscriber untypedSubscriber({"Odometry", "Position", "Vehicle"});
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/icedelivery_on_c/ice_c_publisher.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static void sigHandler(int signalValue)

void sending()
{
iox_runtime_init("/iox-c-publisher");
iox_runtime_init("iox-c-publisher");

uint64_t historyRequest = 0U;
iox_pub_storage_t publisherStorage;
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/icedelivery_on_c/ice_c_subscriber.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static void sigHandler(int signalValue)

void receiving()
{
iox_runtime_init("/iox-c-subscriber");
iox_runtime_init("iox-c-subscriber");

uint64_t historyRequest = 0U;
iox_sub_storage_t subscriberStorage;
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/iceperf/iceperf_hardy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <chrono>
#include <iostream>

constexpr char APP_NAME[] = "/hardy";
constexpr char APP_NAME[] = "hardy";
constexpr char PUBLISHER[] = "Hardy";
constexpr char SUBSCRIBER[] = "Laurel";

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/iceperf/iceperf_laurel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <iostream>

constexpr int64_t NUMBER_OF_ROUNDTRIPS{10000};
constexpr char APP_NAME[] = "/laurel";
constexpr char APP_NAME[] = "laurel";
constexpr char PUBLISHER[] = "Laurel";
constexpr char SUBSCRIBER[] = "Hardy";

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/singleprocess/single_process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ int main()
iox::roudi::RouDi::RoudiStartupParameters{iox::config::MonitoringMode::OFF, false});

// create a single process runtime for inter thread communication
iox::runtime::PoshRuntimeSingleProcess runtime("/singleProcessDemo");
iox::runtime::PoshRuntimeSingleProcess runtime("singleProcessDemo");

std::thread receiverThread(receiver), senderThread(sender);

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/waitset/ice_waitset_gateway.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ int main()

signal(SIGINT, sigHandler);

iox::runtime::PoshRuntime::initRuntime("/iox-ex-waitset-gateway");
iox::runtime::PoshRuntime::initRuntime("iox-ex-waitset-gateway");


iox::popo::WaitSet waitset;
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/waitset/ice_waitset_grouping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int main()

signal(SIGINT, sigHandler);

iox::runtime::PoshRuntime::initRuntime("/iox-ex-waitset-grouping");
iox::runtime::PoshRuntime::initRuntime("iox-ex-waitset-grouping");
iox::popo::WaitSet waitset;

// attach shutdownTrigger to handle CTRL+C
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/waitset/ice_waitset_individual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int main()
{
signal(SIGINT, sigHandler);

iox::runtime::PoshRuntime::initRuntime("/iox-ex-waitset-individual");
iox::runtime::PoshRuntime::initRuntime("iox-ex-waitset-individual");

iox::popo::WaitSet waitset;

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/waitset/ice_waitset_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static void sigHandler(int f_sig [[gnu::unused]])

void sending()
{
iox::runtime::PoshRuntime::initRuntime("/iox-ex-publisher-waitset");
iox::runtime::PoshRuntime::initRuntime("iox-ex-publisher-waitset");

iox::popo::TypedPublisher<CounterTopic> myPublisher({"Radar", "FrontLeft", "Counter"});
myPublisher.offer();
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/waitset/ice_waitset_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SomeClass
int main()
{
signal(SIGINT, sigHandler);
iox::runtime::PoshRuntime::initRuntime("/iox-ex-waitset-sync");
iox::runtime::PoshRuntime::initRuntime("iox-ex-waitset-sync");
std::atomic_bool keepRunning{true};

iox::popo::WaitSet waitset;
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/waitset/ice_waitset_trigger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void eventLoop()

int main()
{
iox::runtime::PoshRuntime::initRuntime("/iox-ex-waitset-trigger");
iox::runtime::PoshRuntime::initRuntime("iox-ex-waitset-trigger");

// we create a waitset and a triggerClass instance inside of the two
// global optional's
Expand Down

0 comments on commit e4b954f

Please sign in to comment.