To start a node without rosrun or roslaunch in different IDEs [closed]

asked 2020-04-15 06:26:44 -0500

azerila gravatar image

updated 2020-04-15 06:40:43 -0500

I am looking for a scenario where while using pycharm, initializing a python class by its own also initializes that class within a ros node. Something like this:

class module(object):
    def __init__(self):
        some_other_stuff()
        rospy.init_node('node_1')
        rospy.spin()
    def ........

and then I want to import this module in other scripts also.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by azerila
close date 2020-04-15 18:01:07.580035

Comments

This reads like a duplicate / condensed version of #q349467. If that is the case, could I ask you to please not post duplicates?

gvdhoorn gravatar image gvdhoorn  ( 2020-04-15 06:43:41 -0500 )edit