ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

taking a pic with pylon camera [closed]

asked 2018-02-14 12:53:33 -0500

jackros gravatar image

*Using Kinetic

After starting this what do I need to do to take a pic and save to disk:

roslaunch pylon_camera/launch/pylon_camera_node.launch

I tried using grab_and_save_image_action_server.py but it seems you need to write an action client and also the action server seems to be private given the ~ (tilde)

self._grab_and_save_img_raw_as = SimpleActionServer(
                "~grab_and_save_image_raw",
                GrabAndSaveImageAction,
                execute_cb=self.grab_and_save_img_raw_execute_cb,
                auto_start=False)

Thank you!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by NEngelhard
close date 2018-02-16 11:47:30.748895

Comments

Take a look at #q10845 (though it would be nice to have an rqt axclient, the existing one works okay)

lucasw gravatar image lucasw  ( 2018-02-14 16:10:23 -0500 )edit

I suppose I don't know who to interact with this action server. Apparently the namespace is private (~) so it seems that outside clients cannot post Goals to it.

jackros gravatar image jackros  ( 2018-02-14 16:20:23 -0500 )edit

if you do rostopic list | grep goal you'll see where the namespaces of all the action servers are.

lucasw gravatar image lucasw  ( 2018-02-14 17:59:40 -0500 )edit
1

I think you misunderstand the meaning of 'private' here. The '~' only means that the action will be attached to the namespace of the node, so that everyone(!) can reach the action at "/grab_and_save_image_action_server/grab_and_save_image_raw/goal" instead of "/grab_and_save_image_raw/goal"

NEngelhard gravatar image NEngelhard  ( 2018-02-15 01:35:19 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-02-15 14:53:56 -0500

jackros gravatar image

The namespace of the client was wrong. Thanks for the tip NEngelhard on the (~). Now I'm able to send Goals to the action server with this setup:

client = actionlib.SimpleActionClient("/pylon_camera_grab_and_save_as/grab_and_save_image_raw", GrabAndSaveImageAction)

Thanks

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-02-14 12:53:33 -0500

Seen: 261 times

Last updated: Feb 15 '18