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

AmitShukla_IITK's profile - activity

2016-04-27 09:38:53 -0500 received badge  Notable Question (source)
2016-04-27 09:38:53 -0500 received badge  Famous Question (source)
2015-11-16 04:55:33 -0500 received badge  Notable Question (source)
2015-11-16 04:55:33 -0500 received badge  Popular Question (source)
2015-11-16 04:55:33 -0500 received badge  Famous Question (source)
2015-08-11 01:21:49 -0500 received badge  Popular Question (source)
2015-08-10 08:47:06 -0500 asked a question I have difficulty that I am able to use ($rosservice call /ardrone/togglecam) command from terminal to toggle between front and bottom camera of AR Drone but same I am not able to do from my python code

I have difficulty that I am able to use ($rosservice call /ardrone/togglecam) command from terminal to toggle between front and bottom camera of AR Drone but same I am not able to do from my python code.

I am using:

to generate publishing command

Self.Pubtogglec = rospy.Publisher(‘/ardrone/togglecam’, Empty)

#Then I have defined a function to finally publish this command to ardrone

Def ToggleBCam(self):

Self.Pubtgglec.publish(Empty())

My code is reaching to this ToggleBCam method (as I am printing some massage there to see if it reaches to this publish line or not) but this is not changing video feed. I am not sure what exactly wrong I am doing. I have search extensively but I have not found any help either. Can you please help me, how I can toggle camera from my python code? I habve seen some of the old tutorial methods have used above mentioned method for toggling cam but why I am not able to do that.

2015-08-10 08:47:05 -0500 asked a question Calling /ardrone/togglecam from python code rather than from terminal

I have difficulty that I am able to use ($rosservice call /ardrone/togglecam) command from terminal to toggle between front and bottom camera of AR Drone but same I am not able to do from my python code.

I am using:

to generate publishing command

Self.Pubtogglec = rospy.Publisher(‘/ardrone/togglecam’, Empty)

#Then I have defined a function to finally publish this command to ardrone Def ToggleBCam(self) Self.Pubtgglec.publish(Empty())

My code is reaching to this ToggleBCam method (as I am printing some massage there to see if it reaches to this publish line or not) but this is not changing video feed. I am not sure what exactly wrong I am doing. I have search extensively but I have not found any help either. Can you please help me, how I can toggle camera from my python code? I habve seen some of the old tutorial methods have used above mentioned method for toggling cam but why I am not able to do that.