Coder Social home page Coder Social logo

Comments (8)

gaya- avatar gaya- commented on July 17, 2024

Or should we consider wrapping the c-functions for accessing the sys-time?

If you just want the equivalent of C system time in SBCL (you mean the one that comes from the operating system in milliseconds from the epoch, is that correct?) try the (sb-ext:get-time-of-day) from the unix API.

My guess is that, originally, roslisp developers tried to keep it as Lisp-compiler-independent as possible, so they used general Common Lisp functions and most of them work on seconds neglecting milliseconds, so you have to get the milliseconds from the run-time and who knows if it creates an overhead etc.

from roslisp.

airballking avatar airballking commented on July 17, 2024

Oh, that is a cool hint! I was not aware of that functionality.

Then the question is: Do we embrace such an sbcl-specific fix of (ros-time)?

from roslisp.

gaya- avatar gaya- commented on July 17, 2024

My guess might also be wrong, because, now that I look closer, right inside the same (ros-time) function there is a call to (mutex-owner *debug-stream-lock*) which is an SBCL-specific function. So, if you try the get-time-of-day and it turns out to work better than get-universal-time I wouldn't object to using it instead...

from roslisp.

moesenle avatar moesenle commented on July 17, 2024

Right. roslisp is already very SBCL specific. Porting it to other Lisp
compilers would be quite some effort. I would just go ahead and use
whatever SBCL function fixes the problem.

Btw. if you don't want to change the official release, you can also think
about monkey-patching roslisp.

On Thu, Feb 12, 2015 at 3:17 PM, Gayane Kazhoyan [email protected]
wrote:

My guess might also be wrong, because, now that I look closer, right
inside the same (ros-time) function there is a call to (mutex-owner
debug-stream-lock) which is an SBCL-specific function. So, if you try
the get-time-of-day and it turns out to work better than
get-universal-time I wouldn't object to using it instead...


Reply to this email directly or view it on GitHub
#22 (comment).

from roslisp.

gaya- avatar gaya- commented on July 17, 2024

@airballking Any update on this? I've noticed problems with cl-tf timestampes before, if sbcl time function solves the problem that would be nice. Have you tested this yet, Georg?

from roslisp.

airballking avatar airballking commented on July 17, 2024

@gaya- I meant to but haven't got around to it. I'm prioritizing hardcore because of the upcoming review. Maybe I feel like checking this out over night.

But you are right, this could be the source of "all those error in cl-tf:lookup-transform". I had not even considered this!

from roslisp.

gaya- avatar gaya- commented on July 17, 2024

#24 should solve this.

from roslisp.

airballking avatar airballking commented on July 17, 2024

Fixed through Gaya's pull request.

from roslisp.

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.