Comments (8)
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.
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.
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.
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.
@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.
@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.
#24 should solve this.
from roslisp.
Fixed through Gaya's pull request.
from roslisp.
Related Issues (20)
- start-ros-node not taking $ROS_IP into account HOT 9
- Subscription and publication to same topic from one node crashes.
- Move from SBCL HOT 16
- Broken on Trusty (because of ASDF 3) HOT 11
- Topic remapping not working HOT 1
- Compiling Lisp code through catkin. HOT 1
- add_lisp_executable fails if bin dir is not deployed HOT 3
- Add a nicer structure for param namespaces
- Problem with installation on Mac OS El Capitan HOT 7
- When starting a new node ensure that no dashes are used in the name HOT 2
- MAKE-MESSAGE also accepting symbols for specifying message type HOT 4
- bug in loop-at-most-every HOT 5
- Warning in doc jobs HOT 17
- Error loading roslisp on newer SBCL versions HOT 3
- [noetic] Uses python on Buster when ROS_PYTHON_VERSION is 3 HOT 5
- Noetic Release? HOT 4
- Nodelets for zero-copy message passing between nodes
- rosilisp serialisation may not warn
- roslisp: avoid /bin/bash
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roslisp.