Skip to content

Unable to find the equivalent of rospy.get_time() #34

@Tahaan

Description

@Tahaan

Is there a way to query the time?

I'm very new to anything ROS and, for that matter, a total noob on all of this.

I'm trying to send a Twist command form an Android app to a topic like this:

      nodeHandle =
          await dartros.initNode('test_node', <String>[], rosMasterUri: MASTER_URI, anonymize: true);

      final twist = Twist(linear: linear, angular: angular);
      final pub = nodeHandle!.advertise('/turtle1/cmd_vel', Twist(),
            queueSize: 10, throttleMs: 20);
      pub.publish(twist);

Since "nothing appears to happen" I'm trying to debug it and was hoping for a get_time or something that can tell me that it is really connected.

Note that I have found no documentation on what to pass to the args parameter of the initNode... So perhaps that is where the problem lies?

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