Giter VIP home page Giter VIP logo

Comments (4)

arpaterson avatar arpaterson commented on June 11, 2024 1

Also experiencing this. In general this node is quite difficult to use with F9P, even with config_on_startup: false and manual configuration in u-center.

Frequent issue on startup:

[ INFO] [1666109469.028044469]: U-Blox: Opened serial port /dev/ttyACM0
terminate called after throwing an instance of 'std::runtime_error'
  what():  Failed to poll MonVER & set relevant settings

Also, after a successful startup and shutdown of the node, it rarely connects successfully a second time.

from ublox.

kevinliu257 avatar kevinliu257 commented on June 11, 2024

I find the reason is "callbacks_.read(message, timeout);" always return false.
because "handler->wait(timeout)" timeout .

but I don't know how to fix it. my OS is Ubuntu 16.04.

code as below:
template
bool Gps::read(T& message, const boost::posix_time::time_duration& timeout) {
if (!worker_) return false;
return callbacks_.read(message, timeout);
}

template
bool read(T& message, const boost::posix_time::time_duration& timeout) {
bool result = false;
// Create a callback handler for this message
callback_mutex_.lock();
CallbackHandler_* handler = new CallbackHandler_();
Callbacks::iterator callback = callbacks_.insert(
(std::make_pair(std::make_pair(T::CLASS_ID, T::MESSAGE_ID),
boost::shared_ptr(handler))));
callback_mutex_.unlock();

// Wait for the message
if (handler->wait(timeout)) {
  message = handler->get();
  result = true;
}

// Remove the callback handler
callback_mutex_.lock();
callbacks_.erase(callback);
callback_mutex_.unlock();
return result;

from ublox.

clint-qurrent avatar clint-qurrent commented on June 11, 2024

I'm having the exact same problem. I do have the ZED-F9P connected to u-center via USB and am attempting to read out the GPS data via UART1.

Any help on this issue would be greatly appreciated.

from ublox.

kosmonauta144 avatar kosmonauta144 commented on June 11, 2024

right, but what can be done with this issue? because on ROS2 Humble the problem also occurs, when using u-center configuration saved in non-volatile memory and parameter config_on_startup: false :/

from ublox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.