Transport id is not recognize

Hello,

Now I'm able to deploy my component (build with catkin ) on orocos xenomai core, branch indigo . I have orocos_toolchain, rtt_ros_integration, rtt_geometry compiled.
However, these messages appears when I launch my deploy:

0.129 [ Warning][ScriptingService] The protocol with id 3 did not register a fall-back handler for unknown types!
0.130 [ Warning][ScriptingService] triggered by: unknown_t which does not have a transport.
0.130 [ ERROR ][ScriptingService] Could not create transport stream for port rt_ops_log_out with transport id 3

This is my .ops file:
var ConnPolicy ros_policy
ros_policy.transport = 3

ros_policy.name_id = "/log_robot_state"
stream("wdc_rt.rt_ops_log_out", ros_policy)

It seems that rtt can't recognize the transport type, no matter which one I assign to (1, 2,...)
Do I have to do any import?

Transport id is not recognize

2015-03-24 17:33 GMT+01:00 Huy Cong Vu <huy-cong [dot] vu [..] ...>:

> Hello,
>
> Now I'm able to deploy my component (build with *catkin*) on orocos
> *xenomai* core, branch *indigo*. I have *orocos_toolchain,
> rtt_ros_integration, rtt_geometry* compiled.
> However, these messages appears when I launch my deploy:
>
> 0.129 [ Warning][ScriptingService] The protocol with id 3 did not register
> a fall-back handler for unknown types!
> 0.130 [ Warning][ScriptingService] triggered by: unknown_t which does not
> have a transport.
> 0.130 [ ERROR ][ScriptingService] Could not create transport stream for
> port rt_ops_log_out with transport id 3
>
> This is my .ops file:
> var ConnPolicy ros_policy
> ros_policy.transport = 3
>
> ros_policy.name_id = "/log_robot_state"
> stream("wdc_rt.rt_ops_log_out", ros_policy)
>
> It seems that rtt can't recognize the transport type, no matter which one
> I assign to (1, 2,...)
> Do I have to do any import?
>

I you haven't read it yet, I suggest you have a look there :
https://github.com/orocos/rtt_ros_integration/tree/hydro-devel/rtt_roscomm

I think you have to generate a package with your types, as explained at
paragraph :
Making a Package's ROS .msg and .srv Types Available

> --
>
> Huy Cong
> Wandercraft SAS
>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
>

Transport id is not recognize

> De: "Willy Lambert" <lambert [dot] willy [..] ...>
> À: "Huy Cong Vu" <huy-cong [dot] vu [..] ...>
> Cc: "Orocos-Users" <orocos-users [..] ...>
> Envoyé: Mardi 24 Mars 2015 17:48:21
> Objet: Re: [Orocos-users] Transport id is not recognize

> 2015-03-24 17:33 GMT+01:00 Huy Cong Vu < huy-cong [dot] vu [..] ... > :

>> Hello,

>> Now I'm able to deploy my component (build with catkin ) on orocos xenomai core,
>> branch indigo . I have orocos_toolchain, rtt_ros_integration, rtt_geometry
>> compiled.
>> However, these messages appears when I launch my deploy:

>> 0.129 [ Warning][ScriptingService] The protocol with id 3 did not register a
>> fall-back handler for unknown types!
>> 0.130 [ Warning][ScriptingService] triggered by: unknown_t which does not have a
>> transport.
>> 0.130 [ ERROR ][ScriptingService] Could not create transport stream for port
>> rt_ops_log_out with transport id 3

>> This is my .ops file:
>> var ConnPolicy ros_policy
>> ros_policy.transport = 3

>> ros_policy.name_id = "/log_robot_state"
>> stream("wdc_rt.rt_ops_log_out", ros_policy)

>> It seems that rtt can't recognize the transport type, no matter which one I
>> assign to (1, 2,...)
>> Do I have to do any import?

> I you haven't read it yet, I suggest you have a look there :
> https://github.com/orocos/rtt_ros_integration/tree/hydro-devel/rtt_roscomm

> I think you have to generate a package with your types, as explained at
> paragraph :
> Making a Package's ROS .msg and .srv Types Available

Hello,
I think that's another problem. But I failed to load the .msg as well.
What I tried to do recently is to update my application from ROS fuerte to indigo (including orocos also)
In fact these info warning must shown up in launch deployer:

[ Info ][TypekitRepository::Import] Loading Transport ros://ros-wrps_msgs
[ Info ][TypekitRepository::Import] Registered new 'ros' transport for /wrps_msgs/...
[ Info ][TypekitRepository::Import] Registered new 'ros' transport for /wrps_msgs/...

But it didn't.

I have a package which contains all generic messages, which the CMakeLists.txt is as follow:
cmake_minimum_required(VERSION 2.8.3)
project(wrps_msgs)

find_package(catkin REQUIRED COMPONENTS wrps rtt_roscomm std_msgs message_generation)

include_directories(include ${catkin_INCLUDE_DIRS})

add_message_files(
FILES {All my .msg is listed here}

generate_messages(
DEPENDENCIES std_msgs
)

ros_generate_rtt_typekit(wrps_msgs)

orocos_generate_package(
DEPENDS wrps_msgs
DEPENDS_TARGETS rtt_roscomm
)

After compilation, I have librtt-wrps_msg-ros-transport.so created in install_isolated/lib/orocos/xenomai/wrps_msgs/types

With fuerte, it loaded automatically when I setActivity of my deployer:
setActivity("Deployer", 0, LowestPriority, ORO_SCHED_OTHER)

With indigo, there is nothing imported.

Do my message package has anything wrong? Or do I have to import manually my message in .ops file?

>> --

>> Huy Cong
>> Wandercraft SAS

>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Ruben Smits's picture

Transport id is not recognize

You probable did not explicitly import the necessary transportkit.

Automatic loading of dependencies using the package.xml has been disabled
since toolchain 2.7 and ROS hydro. It is now part of the rtt_roscom.

So you need:

import("rtt_ros")

and then you can do

ros.import("package")

which does do the automatic loading of dependencies based on the
package/manifest.xml. But you need to explicitly export your rtt
dependencies in the package.xml

See https://github.com/orocos/rtt_ros_integration/tree/hydro-devel/rtt_ros
for more infomation

R.

On Wed, Mar 25, 2015 at 12:48 PM, Huy Cong Vu <huy-cong [dot] vu [..] ...>
wrote:

>
>
> ------------------------------
>
> *De: *"Willy Lambert" <lambert [dot] willy [..] ...>
> *À: *"Huy Cong Vu" <huy-cong [dot] vu [..] ...>
> *Cc: *"Orocos-Users" <orocos-users [..] ...>
> *Envoyé: *Mardi 24 Mars 2015 17:48:21
> *Objet: *Re: [Orocos-users] Transport id is not recognize
>
>
>
> 2015-03-24 17:33 GMT+01:00 Huy Cong Vu <huy-cong [dot] vu [..] ...>:
>
>> Hello,
>>
>> Now I'm able to deploy my component (build with *catkin*) on orocos
>> *xenomai* core, branch *indigo*. I have *orocos_toolchain,
>> rtt_ros_integration, rtt_geometry* compiled.
>> However, these messages appears when I launch my deploy:
>>
>> 0.129 [ Warning][ScriptingService] The protocol with id 3 did not
>> register a fall-back handler for unknown types!
>> 0.130 [ Warning][ScriptingService] triggered by: unknown_t which does not
>> have a transport.
>> 0.130 [ ERROR ][ScriptingService] Could not create transport stream for
>> port rt_ops_log_out with transport id 3
>>
>> This is my .ops file:
>> var ConnPolicy ros_policy
>> ros_policy.transport = 3
>>
>> ros_policy.name_id = "/log_robot_state"
>> stream("wdc_rt.rt_ops_log_out", ros_policy)
>>
>> It seems that rtt can't recognize the transport type, no matter which one
>> I assign to (1, 2,...)
>> Do I have to do any import?
>>
>
> I you haven't read it yet, I suggest you have a look there :
> https://github.com/orocos/rtt_ros_integration/tree/hydro-devel/rtt_roscomm
>
> I think you have to generate a package with your types, as explained at
> paragraph :
> Making a Package's ROS .msg and .srv Types Available
>
> Hello,
> I think that's another problem. But I failed to load the .msg as well.
> What I tried to do recently is to update my application from ROS fuerte to
> indigo (including orocos also)
> In fact these info warning must shown up in launch deployer:
>
> [ Info ][TypekitRepository::Import] Loading Transport
> ros://ros-wrps_msgs
> [ Info ][TypekitRepository::Import] Registered new 'ros' transport for
> /wrps_msgs/...
> [ Info ][TypekitRepository::Import] Registered new 'ros' transport for
> /wrps_msgs/...
>
> But it didn't.
>
> I have a package which contains all generic messages, which the
> CMakeLists.txt is as follow:
> cmake_minimum_required(VERSION 2.8.3)
> project(wrps_msgs)
>
> find_package(catkin REQUIRED COMPONENTS wrps rtt_roscomm std_msgs
> message_generation)
>
> include_directories(include ${catkin_INCLUDE_DIRS})
>
> add_message_files(
> FILES {All my .msg is listed here}
>
> generate_messages(
> DEPENDENCIES std_msgs
> )
>
> ros_generate_rtt_typekit(wrps_msgs)
>
>
> orocos_generate_package(
> DEPENDS wrps_msgs
> DEPENDS_TARGETS rtt_roscomm
> )
>
> After compilation, I have *librtt-wrps_msg-ros-transport.so* created in
> *install_isolated/lib/orocos/xenomai/wrps_msgs/types*
>
> With fuerte, it loaded automatically when I setActivity of my deployer:
> setActivity("Deployer", 0, LowestPriority, ORO_SCHED_OTHER)
>
> With indigo, there is nothing imported.
>
> Do my message package has anything wrong? Or do I have to import manually
> my message in .ops file?
>
> --
>>
>> Huy Cong
>> Wandercraft SAS
>>
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>>
>>
>
> --
>
> Huy Cong
> Wandercraft SAS
>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
>

Transport id is not recognize

> De: "Ruben Smits" <ruben [dot] smits [..] ...>
> À: "Huy Cong Vu" <huy-cong [dot] vu [..] ...>
> Cc: "Willy Lambert" <lambert [dot] willy [..] ...>, "Orocos-Users"
> <orocos-users [..] ...>
> Envoyé: Mercredi 25 Mars 2015 16:05:54
> Objet: Re: [Orocos-users] Transport id is not recognize

> You probable did not explicitly import the necessary transportkit.

> Automatic loading of dependencies using the package.xml has been disabled since
> toolchain 2.7 and ROS hydro. It is now part of the rtt_roscom.
> So you need:

> import("rtt_ros")

> and then you can do

> ros.import("package")

> which does do the automatic loading of dependencies based on the
> package/manifest.xml. But you need to explicitly export your rtt dependencies
> in the package.xml

> See https://github.com/orocos/rtt_ros_integration/tree/hydro-devel/rtt_ros for
> more infomation

> R.

Thanks Ruben, that did help a lot!
I think it recognize my transport type for now, and all my messages are imported properly. However, before creating stream, this error occurs:

[FATAL] [1427297033.685971530]: You must call ros::init() before creating the first NodeHandle
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
[ERROR] [1427297033.691378058]: [registerPublisher] Failed to contact master at [:0]. Retrying...

And it keeps finding AF_INET forever
Do you have any ideas what might cause this?

> On Wed, Mar 25, 2015 at 12:48 PM, Huy Cong Vu < huy-cong [dot] vu [..] ... >
> wrote:

>>> De: "Willy Lambert" < lambert [dot] willy [..] ... >
>>> À: "Huy Cong Vu" < huy-cong [dot] vu [..] ... >
>>> Cc: "Orocos-Users" < orocos-users [..] ... >
>>> Envoyé: Mardi 24 Mars 2015 17:48:21
>>> Objet: Re: [Orocos-users] Transport id is not recognize

>>> 2015-03-24 17:33 GMT+01:00 Huy Cong Vu < huy-cong [dot] vu [..] ... > :

>>>> Hello,

>>>> Now I'm able to deploy my component (build with catkin ) on orocos xenomai core,
>>>> branch indigo . I have orocos_toolchain, rtt_ros_integration, rtt_geometry
>>>> compiled.
>>>> However, these messages appears when I launch my deploy:

>>>> 0.129 [ Warning][ScriptingService] The protocol with id 3 did not register a
>>>> fall-back handler for unknown types!
>>>> 0.130 [ Warning][ScriptingService] triggered by: unknown_t which does not have a
>>>> transport.
>>>> 0.130 [ ERROR ][ScriptingService] Could not create transport stream for port
>>>> rt_ops_log_out with transport id 3

>>>> This is my .ops file:
>>>> var ConnPolicy ros_policy
>>>> ros_policy.transport = 3

>>>> ros_policy.name_id = "/log_robot_state"
>>>> stream("wdc_rt.rt_ops_log_out", ros_policy)

>>>> It seems that rtt can't recognize the transport type, no matter which one I
>>>> assign to (1, 2,...)
>>>> Do I have to do any import?

>>> I you haven't read it yet, I suggest you have a look there :
>>> https://github.com/orocos/rtt_ros_integration/tree/hydro-devel/rtt_roscomm

>>> I think you have to generate a package with your types, as explained at
>>> paragraph :
>>> Making a Package's ROS .msg and .srv Types Available

>> Hello,
>> I think that's another problem. But I failed to load the .msg as well.
>> What I tried to do recently is to update my application from ROS fuerte to
>> indigo (including orocos also)
>> In fact these info warning must shown up in launch deployer:

>> [ Info ][TypekitRepository::Import] Loading Transport ros://ros-wrps_msgs
>> [ Info ][TypekitRepository::Import] Registered new 'ros' transport for
>> /wrps_msgs/...
>> [ Info ][TypekitRepository::Import] Registered new 'ros' transport for
>> /wrps_msgs/...

>> But it didn't.

>> I have a package which contains all generic messages, which the CMakeLists.txt
>> is as follow:
>> cmake_minimum_required(VERSION 2.8.3)
>> project(wrps_msgs)

>> find_package(catkin REQUIRED COMPONENTS wrps rtt_roscomm std_msgs
>> message_generation)

>> include_directories(include ${catkin_INCLUDE_DIRS})

>> add_message_files(
>> FILES {All my .msg is listed here}

>> generate_messages(
>> DEPENDENCIES std_msgs
>> )

>> ros_generate_rtt_typekit(wrps_msgs)

>> orocos_generate_package(
>> DEPENDS wrps_msgs
>> DEPENDS_TARGETS rtt_roscomm
>> )

>> After compilation, I have librtt-wrps_msg-ros-transport.so created in
>> install_isolated/lib/orocos/xenomai/wrps_msgs/types

>> With fuerte, it loaded automatically when I setActivity of my deployer:
>> setActivity("Deployer", 0, LowestPriority, ORO_SCHED_OTHER)

>> With indigo, there is nothing imported.

>> Do my message package has anything wrong? Or do I have to import manually my
>> message in .ops file?

>>>> --

>>>> Huy Cong
>>>> Wandercraft SAS

>>>> --
>>>> Orocos-Users mailing list
>>>> Orocos-Users [..] ...
>>>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

>> --

>> Huy Cong
>> Wandercraft SAS

>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

> --
> Ruben Smits, Roboticist - Founder
> +32 479 511 786
> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
> www.intermodalics.eu

Transport id is not recognize

> De: "Huy Cong Vu" <huy-cong [dot] vu [..] ...>
> À: "Ruben Smits" <ruben [dot] smits [..] ...>
> Cc: "Orocos-Users" <orocos-users [..] ...>
> Envoyé: Mercredi 25 Mars 2015 16:31:06
> Objet: Re: [Orocos-users] Transport id is not recognize

>> De: "Ruben Smits" <ruben [dot] smits [..] ...>
>> À: "Huy Cong Vu" <huy-cong [dot] vu [..] ...>
>> Cc: "Willy Lambert" <lambert [dot] willy [..] ...>, "Orocos-Users"
>> <orocos-users [..] ...>
>> Envoyé: Mercredi 25 Mars 2015 16:05:54
>> Objet: Re: [Orocos-users] Transport id is not recognize

>> You probable did not explicitly import the necessary transportkit.

>> Automatic loading of dependencies using the package.xml has been disabled since
>> toolchain 2.7 and ROS hydro. It is now part of the rtt_roscom.
>> So you need:

>> import("rtt_ros")

>> and then you can do

>> ros.import("package")

>> which does do the automatic loading of dependencies based on the
>> package/manifest.xml. But you need to explicitly export your rtt dependencies
>> in the package.xml

>> See https://github.com/orocos/rtt_ros_integration/tree/hydro-devel/rtt_ros for
>> more infomation

>> R.

> Thanks Ruben, that did help a lot!
> I think it recognize my transport type for now, and all my messages are imported
> properly. However, before creating stream, this error occurs:

> [FATAL] [1427297033.685971530]: You must call ros::init() before creating the
> first NodeHandle
> Couldn't find an AF_INET address for []
> Couldn't find an AF_INET address for []
> [ERROR] [1427297033.691378058]: [registerPublisher] Failed to contact master at
> [:0]. Retrying...

> And it keeps finding AF_INET forever
> Do you have any ideas what might cause this?

With debugger, I'm able to find the

>> On Wed, Mar 25, 2015 at 12:48 PM, Huy Cong Vu < huy-cong [dot] vu [..] ... >
>> wrote:

>>>> De: "Willy Lambert" < lambert [dot] willy [..] ... >
>>>> À: "Huy Cong Vu" < huy-cong [dot] vu [..] ... >
>>>> Cc: "Orocos-Users" < orocos-users [..] ... >
>>>> Envoyé: Mardi 24 Mars 2015 17:48:21
>>>> Objet: Re: [Orocos-users] Transport id is not recognize

>>>> 2015-03-24 17:33 GMT+01:00 Huy Cong Vu < huy-cong [dot] vu [..] ... > :

>>>>> Hello,

>>>>> Now I'm able to deploy my component (build with catkin ) on orocos xenomai core,
>>>>> branch indigo . I have orocos_toolchain, rtt_ros_integration, rtt_geometry
>>>>> compiled.
>>>>> However, these messages appears when I launch my deploy:

>>>>> 0.129 [ Warning][ScriptingService] The protocol with id 3 did not register a
>>>>> fall-back handler for unknown types!
>>>>> 0.130 [ Warning][ScriptingService] triggered by: unknown_t which does not have a
>>>>> transport.
>>>>> 0.130 [ ERROR ][ScriptingService] Could not create transport stream for port
>>>>> rt_ops_log_out with transport id 3

>>>>> This is my .ops file:
>>>>> var ConnPolicy ros_policy
>>>>> ros_policy.transport = 3

>>>>> ros_policy.name_id = "/log_robot_state"
>>>>> stream("wdc_rt.rt_ops_log_out", ros_policy)

>>>>> It seems that rtt can't recognize the transport type, no matter which one I
>>>>> assign to (1, 2,...)
>>>>> Do I have to do any import?

>>>> I you haven't read it yet, I suggest you have a look there :
>>>> https://github.com/orocos/rtt_ros_integration/tree/hydro-devel/rtt_roscomm

>>>> I think you have to generate a package with your types, as explained at
>>>> paragraph :
>>>> Making a Package's ROS .msg and .srv Types Available

>>> Hello,
>>> I think that's another problem. But I failed to load the .msg as well.
>>> What I tried to do recently is to update my application from ROS fuerte to
>>> indigo (including orocos also)
>>> In fact these info warning must shown up in launch deployer:

>>> [ Info ][TypekitRepository::Import] Loading Transport ros://ros-wrps_msgs
>>> [ Info ][TypekitRepository::Import] Registered new 'ros' transport for
>>> /wrps_msgs/...
>>> [ Info ][TypekitRepository::Import] Registered new 'ros' transport for
>>> /wrps_msgs/...

>>> But it didn't.

>>> I have a package which contains all generic messages, which the CMakeLists.txt
>>> is as follow:
>>> cmake_minimum_required(VERSION 2.8.3)
>>> project(wrps_msgs)

>>> find_package(catkin REQUIRED COMPONENTS wrps rtt_roscomm std_msgs
>>> message_generation)

>>> include_directories(include ${catkin_INCLUDE_DIRS})

>>> add_message_files(
>>> FILES {All my .msg is listed here}

>>> generate_messages(
>>> DEPENDENCIES std_msgs
>>> )

>>> ros_generate_rtt_typekit(wrps_msgs)

>>> orocos_generate_package(
>>> DEPENDS wrps_msgs
>>> DEPENDS_TARGETS rtt_roscomm
>>> )

>>> After compilation, I have librtt-wrps_msg-ros-transport.so created in
>>> install_isolated/lib/orocos/xenomai/wrps_msgs/types

>>> With fuerte, it loaded automatically when I setActivity of my deployer:
>>> setActivity("Deployer", 0, LowestPriority, ORO_SCHED_OTHER)

>>> With indigo, there is nothing imported.

>>> Do my message package has anything wrong? Or do I have to import manually my
>>> message in .ops file?

>>>>> --

>>>>> Huy Cong
>>>>> Wandercraft SAS

>>>>> --
>>>>> Orocos-Users mailing list
>>>>> Orocos-Users [..] ...
>>>>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

>>> --

>>> Huy Cong
>>> Wandercraft SAS

>>> --
>>> Orocos-Users mailing list
>>> Orocos-Users [..] ...
>>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

>> --
>> Ruben Smits, Roboticist - Founder
>> +32 479 511 786
>> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
>> www.intermodalics.eu

> --

> Huy Cong
> Wandercraft SAS

> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Transport id is not recognize

> De: "Huy Cong Vu" <huy-cong [dot] vu [..] ...>
> À: "Ruben Smits" <ruben [dot] smits [..] ...>
> Cc: "Orocos-Users" <orocos-users [..] ...>
> Envoyé: Jeudi 26 Mars 2015 12:36:16
> Objet: Re: [Orocos-users] Transport id is not recognize

>> De: "Huy Cong Vu" <huy-cong [dot] vu [..] ...>
>> À: "Ruben Smits" <ruben [dot] smits [..] ...>
>> Cc: "Orocos-Users" <orocos-users [..] ...>
>> Envoyé: Mercredi 25 Mars 2015 16:31:06
>> Objet: Re: [Orocos-users] Transport id is not recognize

>>> De: "Ruben Smits" <ruben [dot] smits [..] ...>
>>> À: "Huy Cong Vu" <huy-cong [dot] vu [..] ...>
>>> Cc: "Willy Lambert" <lambert [dot] willy [..] ...>, "Orocos-Users"
>>> <orocos-users [..] ...>
>>> Envoyé: Mercredi 25 Mars 2015 16:05:54
>>> Objet: Re: [Orocos-users] Transport id is not recognize

>>> You probable did not explicitly import the necessary transportkit.

>>> Automatic loading of dependencies using the package.xml has been disabled since
>>> toolchain 2.7 and ROS hydro. It is now part of the rtt_roscom.
>>> So you need:

>>> import("rtt_ros")

>>> and then you can do

>>> ros.import("package")

>>> which does do the automatic loading of dependencies based on the
>>> package/manifest.xml. But you need to explicitly export your rtt dependencies
>>> in the package.xml

>>> See https://github.com/orocos/rtt_ros_integration/tree/hydro-devel/rtt_ros for
>>> more infomation

>>> R.

>> Thanks Ruben, that did help a lot!
>> I think it recognize my transport type for now, and all my messages are imported
>> properly. However, before creating stream, this error occurs:

>> [FATAL] [1427297033.685971530]: You must call ros::init() before creating the
>> first NodeHandle
>> Couldn't find an AF_INET address for []
>> Couldn't find an AF_INET address for []
>> [ERROR] [1427297033.691378058]: [registerPublisher] Failed to contact master at
>> [:0]. Retrying...

>> And it keeps finding AF_INET forever
>> Do you have any ideas what might cause this?

> With debugger, I'm able to find the

With debugger, I'm able to find the point where it begins the sequence:
In rtt/rtt/internal/ConnFactory.cpp:
In function bool ConnFactory::createAndCheckConnection(base::OutputPortInterface& output_port, base::InputPortInterface& input_port, base::ChannelElementBase::shared_ptr channel_input, ConnPolicy policy)
--> RTT::base::ChannelElementBase::shared_ptr chan_stream = type->getProtocol(policy.transport)->createStream(&output_port, policy, true);

At that moment it try to create stream, I think I failed to make a connection with my master. However I already setup a roscore, is there anything else I'm missing here?

>>> On Wed, Mar 25, 2015 at 12:48 PM, Huy Cong Vu < huy-cong [dot] vu [..] ... >
>>> wrote:

>>>>> De: "Willy Lambert" < lambert [dot] willy [..] ... >
>>>>> À: "Huy Cong Vu" < huy-cong [dot] vu [..] ... >
>>>>> Cc: "Orocos-Users" < orocos-users [..] ... >
>>>>> Envoyé: Mardi 24 Mars 2015 17:48:21
>>>>> Objet: Re: [Orocos-users] Transport id is not recognize

>>>>> 2015-03-24 17:33 GMT+01:00 Huy Cong Vu < huy-cong [dot] vu [..] ... > :

>>>>>> Hello,

>>>>>> Now I'm able to deploy my component (build with catkin ) on orocos xenomai core,
>>>>>> branch indigo . I have orocos_toolchain, rtt_ros_integration, rtt_geometry
>>>>>> compiled.
>>>>>> However, these messages appears when I launch my deploy:

>>>>>> 0.129 [ Warning][ScriptingService] The protocol with id 3 did not register a
>>>>>> fall-back handler for unknown types!
>>>>>> 0.130 [ Warning][ScriptingService] triggered by: unknown_t which does not have a
>>>>>> transport.
>>>>>> 0.130 [ ERROR ][ScriptingService] Could not create transport stream for port
>>>>>> rt_ops_log_out with transport id 3

>>>>>> This is my .ops file:
>>>>>> var ConnPolicy ros_policy
>>>>>> ros_policy.transport = 3

>>>>>> ros_policy.name_id = "/log_robot_state"
>>>>>> stream("wdc_rt.rt_ops_log_out", ros_policy)

>>>>>> It seems that rtt can't recognize the transport type, no matter which one I
>>>>>> assign to (1, 2,...)
>>>>>> Do I have to do any import?

>>>>> I you haven't read it yet, I suggest you have a look there :
>>>>> https://github.com/orocos/rtt_ros_integration/tree/hydro-devel/rtt_roscomm

>>>>> I think you have to generate a package with your types, as explained at
>>>>> paragraph :
>>>>> Making a Package's ROS .msg and .srv Types Available

>>>> Hello,
>>>> I think that's another problem. But I failed to load the .msg as well.
>>>> What I tried to do recently is to update my application from ROS fuerte to
>>>> indigo (including orocos also)
>>>> In fact these info warning must shown up in launch deployer:

>>>> [ Info ][TypekitRepository::Import] Loading Transport ros://ros-wrps_msgs
>>>> [ Info ][TypekitRepository::Import] Registered new 'ros' transport for
>>>> /wrps_msgs/...
>>>> [ Info ][TypekitRepository::Import] Registered new 'ros' transport for
>>>> /wrps_msgs/...

>>>> But it didn't.

>>>> I have a package which contains all generic messages, which the CMakeLists.txt
>>>> is as follow:
>>>> cmake_minimum_required(VERSION 2.8.3)
>>>> project(wrps_msgs)

>>>> find_package(catkin REQUIRED COMPONENTS wrps rtt_roscomm std_msgs
>>>> message_generation)

>>>> include_directories(include ${catkin_INCLUDE_DIRS})

>>>> add_message_files(
>>>> FILES {All my .msg is listed here}

>>>> generate_messages(
>>>> DEPENDENCIES std_msgs
>>>> )

>>>> ros_generate_rtt_typekit(wrps_msgs)

>>>> orocos_generate_package(
>>>> DEPENDS wrps_msgs
>>>> DEPENDS_TARGETS rtt_roscomm
>>>> )

>>>> After compilation, I have librtt-wrps_msg-ros-transport.so created in
>>>> install_isolated/lib/orocos/xenomai/wrps_msgs/types

>>>> With fuerte, it loaded automatically when I setActivity of my deployer:
>>>> setActivity("Deployer", 0, LowestPriority, ORO_SCHED_OTHER)

>>>> With indigo, there is nothing imported.

>>>> Do my message package has anything wrong? Or do I have to import manually my
>>>> message in .ops file?

>>>>>> --

>>>>>> Huy Cong
>>>>>> Wandercraft SAS

>>>>>> --
>>>>>> Orocos-Users mailing list
>>>>>> Orocos-Users [..] ...
>>>>>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

>>>> --

>>>> Huy Cong
>>>> Wandercraft SAS

>>>> --
>>>> Orocos-Users mailing list
>>>> Orocos-Users [..] ...
>>>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

>>> --
>>> Ruben Smits, Roboticist - Founder
>>> +32 479 511 786
>>> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
>>> www.intermodalics.eu

>> --

>> Huy Cong
>> Wandercraft SAS

>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

> --

> Huy Cong
> Wandercraft SAS

Ruben Smits's picture

Transport id is not recognize

Your process did not call ros::init() before the stream is created, as the
error output explains.

The preferred way for doing this is importing the rtt_rosnode plugin which
is exactly doing that for you:

import("rtt_rosnode")

or

import("rtt_ros")
ros.import("rtt_rosnode")

see
https://github.com/orocos/rtt_ros_integration/blob/hydro-devel/rtt_rosno...
for more details.

R.

On Thu, Mar 26, 2015 at 12:42 PM, Huy Cong Vu <huy-cong [dot] vu [..] ...>
wrote:

>
>
> ------------------------------
>
> *De: *"Huy Cong Vu" <huy-cong [dot] vu [..] ...>
> *À: *"Ruben Smits" <ruben [dot] smits [..] ...>
> *Cc: *"Orocos-Users" <orocos-users [..] ...>
> *Envoyé: *Jeudi 26 Mars 2015 12:36:16
>
> *Objet: *Re: [Orocos-users] Transport id is not recognize
>
>
>
> ------------------------------
>
> *De: *"Huy Cong Vu" <huy-cong [dot] vu [..] ...>
> *À: *"Ruben Smits" <ruben [dot] smits [..] ...>
> *Cc: *"Orocos-Users" <orocos-users [..] ...>
> *Envoyé: *Mercredi 25 Mars 2015 16:31:06
> *Objet: *Re: [Orocos-users] Transport id is not recognize
>
>
>
> ------------------------------
>
> *De: *"Ruben Smits" <ruben [dot] smits [..] ...>
> *À: *"Huy Cong Vu" <huy-cong [dot] vu [..] ...>
> *Cc: *"Willy Lambert" <lambert [dot] willy [..] ...>, "Orocos-Users" <
> orocos-users [..] ...>
> *Envoyé: *Mercredi 25 Mars 2015 16:05:54
> *Objet: *Re: [Orocos-users] Transport id is not recognize
>
> You probable did not explicitly import the necessary transportkit.
>
> Automatic loading of dependencies using the package.xml has been disabled
> since toolchain 2.7 and ROS hydro. It is now part of the rtt_roscom.
> So you need:
>
> import("rtt_ros")
>
> and then you can do
>
> ros.import("package")
>
> which does do the automatic loading of dependencies based on the
> package/manifest.xml. But you need to explicitly export your rtt
> dependencies in the package.xml
>
> See https://github.com/orocos/rtt_ros_integration/tree/hydro-devel/rtt_ros
> for more infomation
>
> R.
>
>
> Thanks Ruben, that did help a lot!
> I think it recognize my transport type for now, and all my messages are
> imported properly. However, before creating stream, this error occurs:
>
> [FATAL] [1427297033.685971530]: You must call ros::init() before creating
> the first NodeHandle
> Couldn't find an AF_INET address for []
> Couldn't find an AF_INET address for []
> [ERROR] [1427297033.691378058]: [registerPublisher] Failed to contact
> master at [:0]. Retrying...
>
> And it keeps finding AF_INET forever
> Do you have any ideas what might cause this?
>
> With debugger, I'm able to find the
>
> With debugger, I'm able to find the point where it begins the sequence:
> In rtt/rtt/internal/ConnFactory.cpp:
> In function bool
> ConnFactory::createAndCheckConnection(base::OutputPortInterface&
> output_port, base::InputPortInterface& input_port,
> base::ChannelElementBase::shared_ptr channel_input, ConnPolicy policy)
> --> RTT::base::ChannelElementBase::shared_ptr chan_stream =
> type->getProtocol(policy.transport)->createStream(&output_port, policy,
> true);
>
> At that moment it try to create stream, I think I failed to make a
> connection with my master. However I already setup a roscore, is there
> anything else I'm missing here?
>
>
>
>
>
>
> On Wed, Mar 25, 2015 at 12:48 PM, Huy Cong Vu <huy-cong [dot] vu [..] ...>
> wrote:
>
>>
>>
>> ------------------------------
>>
>> *De: *"Willy Lambert" <lambert [dot] willy [..] ...>
>> *À: *"Huy Cong Vu" <huy-cong [dot] vu [..] ...>
>> *Cc: *"Orocos-Users" <orocos-users [..] ...>
>> *Envoyé: *Mardi 24 Mars 2015 17:48:21
>> *Objet: *Re: [Orocos-users] Transport id is not recognize
>>
>>
>>
>> 2015-03-24 17:33 GMT+01:00 Huy Cong Vu <huy-cong [dot] vu [..] ...>:
>>
>>> Hello,
>>>
>>> Now I'm able to deploy my component (build with *catkin*) on orocos
>>> *xenomai* core, branch *indigo*. I have *orocos_toolchain,
>>> rtt_ros_integration, rtt_geometry* compiled.
>>> However, these messages appears when I launch my deploy:
>>>
>>> 0.129 [ Warning][ScriptingService] The protocol with id 3 did not
>>> register a fall-back handler for unknown types!
>>> 0.130 [ Warning][ScriptingService] triggered by: unknown_t which does
>>> not have a transport.
>>> 0.130 [ ERROR ][ScriptingService] Could not create transport stream for
>>> port rt_ops_log_out with transport id 3
>>>
>>> This is my .ops file:
>>> var ConnPolicy ros_policy
>>> ros_policy.transport = 3
>>>
>>> ros_policy.name_id = "/log_robot_state"
>>> stream("wdc_rt.rt_ops_log_out", ros_policy)
>>>
>>> It seems that rtt can't recognize the transport type, no matter which
>>> one I assign to (1, 2,...)
>>> Do I have to do any import?
>>>
>>
>> I you haven't read it yet, I suggest you have a look there :
>> https://github.com/orocos/rtt_ros_integration/tree/hydro-devel/rtt_roscomm
>>
>> I think you have to generate a package with your types, as explained at
>> paragraph :
>> Making a Package's ROS .msg and .srv Types Available
>>
>> Hello,
>> I think that's another problem. But I failed to load the .msg as well.
>> What I tried to do recently is to update my application from ROS fuerte
>> to indigo (including orocos also)
>> In fact these info warning must shown up in launch deployer:
>>
>> [ Info ][TypekitRepository::Import] Loading Transport
>> ros://ros-wrps_msgs
>> [ Info ][TypekitRepository::Import] Registered new 'ros' transport for
>> /wrps_msgs/...
>> [ Info ][TypekitRepository::Import] Registered new 'ros' transport for
>> /wrps_msgs/...
>>
>> But it didn't.
>>
>> I have a package which contains all generic messages, which the
>> CMakeLists.txt is as follow:
>> cmake_minimum_required(VERSION 2.8.3)
>> project(wrps_msgs)
>>
>> find_package(catkin REQUIRED COMPONENTS wrps rtt_roscomm std_msgs
>> message_generation)
>>
>> include_directories(include ${catkin_INCLUDE_DIRS})
>>
>> add_message_files(
>> FILES {All my .msg is listed here}
>>
>> generate_messages(
>> DEPENDENCIES std_msgs
>> )
>>
>> ros_generate_rtt_typekit(wrps_msgs)
>>
>>
>> orocos_generate_package(
>> DEPENDS wrps_msgs
>> DEPENDS_TARGETS rtt_roscomm
>> )
>>
>> After compilation, I have *librtt-wrps_msg-ros-transport.so* created in
>> *install_isolated/lib/orocos/xenomai/wrps_msgs/types*
>>
>> With fuerte, it loaded automatically when I setActivity of my deployer:
>> setActivity("Deployer", 0, LowestPriority, ORO_SCHED_OTHER)
>>
>> With indigo, there is nothing imported.
>>
>> Do my message package has anything wrong? Or do I have to import manually
>> my message in .ops file?
>>
>> --
>>>
>>> Huy Cong
>>> Wandercraft SAS
>>>
>>> --
>>> Orocos-Users mailing list
>>> Orocos-Users [..] ...
>>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>>>
>>>
>>
>> --
>>
>> Huy Cong
>> Wandercraft SAS
>>
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>>
>>
>
>
> --
> Ruben Smits, Roboticist - Founder
> +32 479 511 786
> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
> www.intermodalics.eu
>
>
> --
>
> Huy Cong
> Wandercraft SAS
>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
>
> --
>
> Huy Cong
> Wandercraft SAS
>
>
> --
>
> Huy Cong
> Wandercraft SAS
>