Skip to content

Is it possible to start a roscore using rospypi from Python code? #62

Description

@jelledouwe

First of all, I admire the project! I was wondering whether it is possible to start a roscore from code using rospypi.
This is possible using standard rospy (taken from https://answers.ros.org/question/215600/how-can-i-run-roscore-from-python/):

import roslaunch
uuid = roslaunch.rlutil.get_or_generate_uuid(options_runid=None, options_wait_for_master=False)
roslaunch.configure_logging(uuid)
launch = roslaunch.parent.ROSLaunchParent(uuid, roslaunch_files=[], is_core=True)
launch.start()
#  --- your code ---
launch.shutdown()

Is something similar also possible using rospypi?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions