Re: dcam1394 namespace issues

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: dcam1394 namespace issues

Blaise Gassend
Hi Markus,

I updated the driver with your fix to private_nh. Based on a few spot
checks, it is getting at least some of its parameters correctly.

Which parameters is it not getting for you? How are you trying to set
them?

If you do something like this does it work?
rosrun dcam1394 _speed:=foo _frame_id:=bar

Cheers,
Blaise

On Fri, 2010-01-15 at 17:21 +0100, Markus Achtelik wrote:

> Hi all,
>
> I was trying to get a PointGrey Firefly USB camera running with dcam1394
> over libusb. When I try to run the node, I get the following error:
>
> terminate called after throwing an instance of
> 'ros::InvalidNameException'
>   what():  Character [~] at element [1] is not valid in Graph Resource
> Name [/~].  Valid characters are a-z, A-Z, 0-9, / and _
>
> this happened when I was starting it with rosrun as well as with the
> supplied .launch file.
> I had a look in the code of dcam.cpp: a private nodehandle (l. 86) gets
> instantiated with "nh_" as a parent node and "~" as the (private?)
> namespace. So, when inheriting the name from the parent node, the "/"
> gets added and I guess that's why the error is thrown.
> Changing to:
>
> ros::NodeHandle private_nh = ros::NodeHandle("~");
>
> got at least the camera running, but it somehow seems to ignore setting
> parameters.
>
> Am I messing up something with the namespaces or is there a bug
> somewhere?
>
> Thanks for your help!
>
> Best, Markus  
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> ros-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/ros-users


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
ros-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ros-users
Reply | Threaded
Open this post in threaded view
|

Re: dcam1394 namespace issues

Markus Achtelik
Hi Blaise,

setting the parameters as you suggested works. I think I was messing up
something with setting the parameters ;-)

Cheers, Markus

On Mon, 2010-01-18 at 10:28 -0800, Blaise Gassend wrote:

> Hi Markus,
>
> I updated the driver with your fix to private_nh. Based on a few spot
> checks, it is getting at least some of its parameters correctly.
>
> Which parameters is it not getting for you? How are you trying to set
> them?
>
> If you do something like this does it work?
> rosrun dcam1394 _speed:=foo _frame_id:=bar
>
> Cheers,
> Blaise
>
> On Fri, 2010-01-15 at 17:21 +0100, Markus Achtelik wrote:
> > Hi all,
> >
> > I was trying to get a PointGrey Firefly USB camera running with dcam1394
> > over libusb. When I try to run the node, I get the following error:
> >
> > terminate called after throwing an instance of
> > 'ros::InvalidNameException'
> >   what():  Character [~] at element [1] is not valid in Graph Resource
> > Name [/~].  Valid characters are a-z, A-Z, 0-9, / and _
> >
> > this happened when I was starting it with rosrun as well as with the
> > supplied .launch file.
> > I had a look in the code of dcam.cpp: a private nodehandle (l. 86) gets
> > instantiated with "nh_" as a parent node and "~" as the (private?)
> > namespace. So, when inheriting the name from the parent node, the "/"
> > gets added and I guess that's why the error is thrown.
> > Changing to:
> >
> > ros::NodeHandle private_nh = ros::NodeHandle("~");
> >
> > got at least the camera running, but it somehow seems to ignore setting
> > parameters.
> >
> > Am I messing up something with the namespaces or is there a bug
> > somewhere?
> >
> > Thanks for your help!
> >
> > Best, Markus  
> >
> > ------------------------------------------------------------------------------
> > Throughout its 18-year history, RSA Conference consistently attracts the
> > world's best and brightest in the field, creating opportunities for Conference
> > attendees to learn about information security's most important issues through
> > interactions with peers, luminaries and emerging and established companies.
> > http://p.sf.net/sfu/rsaconf-dev2dev
> > _______________________________________________
> > ros-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/ros-users
>
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> ros-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/ros-users


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
ros-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ros-users
Reply | Threaded
Open this post in threaded view
|

Re: dcam1394 namespace issues

Brian Gerkey
Note that dcam1394 is not compiling since the recent image_pipeline release:

https://code.ros.org/trac/ros-pkg/ticket/3671

        brian.

On Tue, Jan 19, 2010 at 5:46 AM, Markus Achtelik
<[hidden email]> wrote:

> Hi Blaise,
>
> setting the parameters as you suggested works. I think I was messing up
> something with setting the parameters ;-)
>
> Cheers, Markus
>
> On Mon, 2010-01-18 at 10:28 -0800, Blaise Gassend wrote:
>> Hi Markus,
>>
>> I updated the driver with your fix to private_nh. Based on a few spot
>> checks, it is getting at least some of its parameters correctly.
>>
>> Which parameters is it not getting for you? How are you trying to set
>> them?
>>
>> If you do something like this does it work?
>> rosrun dcam1394 _speed:=foo _frame_id:=bar
>>
>> Cheers,
>> Blaise
>>
>> On Fri, 2010-01-15 at 17:21 +0100, Markus Achtelik wrote:
>> > Hi all,
>> >
>> > I was trying to get a PointGrey Firefly USB camera running with dcam1394
>> > over libusb. When I try to run the node, I get the following error:
>> >
>> > terminate called after throwing an instance of
>> > 'ros::InvalidNameException'
>> >   what():  Character [~] at element [1] is not valid in Graph Resource
>> > Name [/~].  Valid characters are a-z, A-Z, 0-9, / and _
>> >
>> > this happened when I was starting it with rosrun as well as with the
>> > supplied .launch file.
>> > I had a look in the code of dcam.cpp: a private nodehandle (l. 86) gets
>> > instantiated with "nh_" as a parent node and "~" as the (private?)
>> > namespace. So, when inheriting the name from the parent node, the "/"
>> > gets added and I guess that's why the error is thrown.
>> > Changing to:
>> >
>> > ros::NodeHandle private_nh = ros::NodeHandle("~");
>> >
>> > got at least the camera running, but it somehow seems to ignore setting
>> > parameters.
>> >
>> > Am I messing up something with the namespaces or is there a bug
>> > somewhere?
>> >
>> > Thanks for your help!
>> >
>> > Best, Markus
>> >
>> > ------------------------------------------------------------------------------
>> > Throughout its 18-year history, RSA Conference consistently attracts the
>> > world's best and brightest in the field, creating opportunities for Conference
>> > attendees to learn about information security's most important issues through
>> > interactions with peers, luminaries and emerging and established companies.
>> > http://p.sf.net/sfu/rsaconf-dev2dev
>> > _______________________________________________
>> > ros-users mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/ros-users
>>
>>
>> ------------------------------------------------------------------------------
>> Throughout its 18-year history, RSA Conference consistently attracts the
>> world's best and brightest in the field, creating opportunities for Conference
>> attendees to learn about information security's most important issues through
>> interactions with peers, luminaries and emerging and established companies.
>> http://p.sf.net/sfu/rsaconf-dev2dev
>> _______________________________________________
>> ros-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/ros-users
>
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> ros-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/ros-users
>

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
ros-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ros-users