ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Solved it with the following: context = 'spawn' ctx = mp.get_context(context) robot2 = ctx.Process(target=robot1, kwargs={'robot_ip': ip2, 'uri': uri+1}) robot2.daemon = True robot2.start()
However, in the same script on top I have to also add:
paths = [...some paths, ...]
for path in reversed(paths):
sys.path.insert(0, os.path.expanduser(path))
which I'm not sure why but
2 | No.2 Revision |
Solved it with the following:
following:
context = 'spawn'
ctx = mp.get_context(context)
robot2 = ctx.Process(target=robot1, kwargs={'robot_ip': ip2, 'uri': uri+1})
robot2.daemon = True
robot2.start()robot2.start()
However, in the same script on top I have to also add:
paths = [...some paths, ...]
for path in reversed(paths):
sys.path.insert(0, os.path.expanduser(path))
which I'm not sure why butif there's a better solution for it. but it works.