ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

okay, well I haven't been so successful myself at passing information dynamically between nodes and their parent activities.

The only time I've been able to pass information to a Java node from a java activity is during initialisation of the class that is the node.

Your java program could accept an argument that is your message that could then be passed to the node, sent as a serviceclient, or published once or so, and then shutdown the complete program. This may be slow, but might be acceptable.

I've posted a question about dynamically sending data to nodes from within their activities.

cheers Peter

okay, well I haven't been so successful myself at passing information dynamically between nodes and their parent activities.

The only time I've been able to pass information to a Java node from a java activity (and beyond) is during initialisation of the class that is the node.

Your java program could accept an argument that is your message that could then be passed to the node, sent as a serviceclient, or published once or so, and then shutdown the complete program. This may be slow, but might be acceptable.

I've posted a question about dynamically sending data to nodes from within their activities.

cheers Peter