I would like pass arguments to a node like so:
rosrun my_package my_node.py myArg1 myArg2
Is this possible? How do I define my python function? Currently it is:
#!/usr/bin/env python import roslib; roslib.load_manifest('my_package') import rospy def my_node(myArg1,myArg2) ...
but when I use the command line and run rosrun I get errors saying the my function takes two arguments and 0 were passed.
Using topics to pass in information seems over complicated and I don't want to use parameters because I don't need to make myArg1 and myArg2 available to any other nodes. Any help would be appreciated.
Edit: Running fuerte
Post score: 4