You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
Unable to get multiple Topic follow along android_core/android_tutorial_pubsub #320
I try get 3 Topic based on android_tutorial_pubsub instead of 1 topic is "/chatter".
Purpose is get multiple Topic to display monitor telephone. But I have issue this unable to get data at the same time. i only get 1 topic. Help me!
My code:
public class MainActivity extends RosActivity {
// create
private RosTextView<std_msgs.String> rosPreArm;
private RosTextView<std_msgs.String> rosBattery;
private RosTextView<std_msgs.String> rosMode;
protected NodeMainExecutor nodeMainExecutor;
public MainActivity() {
// The RosActivity constructor configures the notification title and ticker
// messages.
super("Pubsub Tutorial", "Pubsub Tutorial");
}
@SuppressWarnings("unchecked") @OverRide
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
And, I have issue is get message like:
In file msg have:
StatusType.msg (string PreArm, string Battery, string Mode, string Armed) and multiple file like GPSType.msg, AttitudeType.msg, ..., created by me.
I want to get message in android instead of get Topic. Help me!
Activity
arpit999 commentedon Dec 24, 2020
You need to define the other two RosTextView in init. As per you code, I can only see that you define one.
add below lines in your init method