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
when we click stop button, OnClickListener() will run the changeState(false), this api will run the talkerNode.stop(), and when we down this, talkerNode.stop() will run again , so node will be stopped twice?
大哥,你安卓的项目跑的起来吗?我这边一直报错
CMake Error at CMakeLists.txt:18 (find_package):
By not providing "Findspdlog_vendor.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"spdlog_vendor", but CMake did not find one.
Could not find a package configuration file provided by "spdlog_vendor"
with any of the following names:
Add the installation prefix of "spdlog_vendor" to CMAKE_PREFIX_PATH or set
"spdlog_vendor_DIR" to a directory containing one of the above files. If
"spdlog_vendor" provides a separate development package or SDK, be sure it
has been installed.
code path : ros2_android_examples/ros2_talker_android/src/main/java/org/ros2/examples/android/talker/ROS2TalkerActivity.java
just like below:
// Create an anonymous implementation of OnClickListener
private OnClickListener startListener = new OnClickListener() {
public void onClick(final View view) {
Log.d(logtag, "onClick() called - start button");
Toast
.makeText(ROS2TalkerActivity.this, "The Start button was clicked.",
Toast.LENGTH_LONG)
.show();
Log.d(logtag, "onClick() ended - start button");
Button buttonStart = (Button)findViewById(R.id.buttonStart);
Button buttonStop = (Button)findViewById(R.id.buttonStop);
changeState(true);
}
};
// Create an anonymous implementation of OnClickListener
private OnClickListener stopListener = new OnClickListener() {
public void onClick(final View view) {
Log.d(logtag, "onClick() called - stop button");
Toast
.makeText(ROS2TalkerActivity.this, "The Stop button was clicked.",
Toast.LENGTH_LONG)
.show();
changeState(false);
Log.d(logtag, "onClick() ended - stop button");
talkerNode.stop();
}
};
The text was updated successfully, but these errors were encountered: