ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question

maxsteel777's profile - activity

2018-07-10 06:01:08 -0600 received badge  Famous Question (source)
2018-03-12 02:57:40 -0600 received badge  Notable Question (source)
2017-04-22 17:11:54 -0600 marked best answer How to call a service of a seperate package from a node frm another package?

I'm using the rosarduino bridge package on a custom robot and i'm developing a node access the package when required. but im havin trouble callin the services in arduinobridge usin rospy.serviceproxy(' ', )

shld it be called usin another function in da client node.. i did add da dependacies in da node.

This is da code I used to call the service

#!/usr/bin/env python

import sys
import rospy
from ros_arduino_python import *
from ros_arduino_msgs.srv import *

def digital_write_client(pin, value):
  # rospy.wait_for_sevice('digital_write')
   try:
        digital_write = rospy.ServiceProxy('digital_write', DigitalWrite)
        digital_write(pin,value)
        print"call success"
   except rospy.ServiceException, e:
        print "Service call failed: %s"%e   

if __name__ == "__main__":
   digital_write_client(8,1)
2017-04-22 17:08:55 -0600 received badge  Popular Question (source)
2017-04-22 07:58:50 -0600 commented question How to call a service of a seperate package from a node frm another package?

I found da error in the code. I had been usin the wrong service name (rospy.ServiceProxy('digital_write', DigitalWrite).

2017-04-22 07:56:59 -0600 commented question How to call a service of a seperate package from a node frm another package?

I found da error in the code. I had been usin the wrong service name (rospy.ServiceProxy('digital_write', DigitalWrite).

2017-04-22 07:56:13 -0600 received badge  Editor (source)
2017-04-22 07:56:13 -0600 edited question How to call a service of a seperate package from a node frm another package?

How to call a service of a seperate package from a node frm another package? I'm using the rosarduino bridge package on

2017-04-22 07:54:45 -0600 edited question How to call a service of a seperate package from a node frm another package?

How to call a service of a seperate package from a node frm another package? I'm using the rosarduino bridge package on

2017-04-21 23:04:39 -0600 commented question How to call a service of a seperate package from a node frm another package?

i'm tryin to call DigitalWrite.srv using the below code, but i keep gettin da exception i have implemented. I'm new to R

2017-04-21 18:53:01 -0600 asked a question How to call a service of a seperate package from a node frm another package?

How to call a service of a seperate package from a node frm another package? I'm using the rosarduino bridge package on

2017-04-21 10:41:32 -0600 received badge  Supporter (source)