Questions tagged [motion]

Use this tag for physically moving systems. For example robots, or electronic or pneumatic actuators.

584 questions
6
votes
2 answers

draw a single-touch motion path in android

i am trying to make a drawing application. i want to draw a single-touch motion path in android - like the way the Swype keyboard does it. And consequently i want to store x-y coordinates of EACH of the pixels of the motion path into a data…
Rakib
  • 12,376
  • 16
  • 77
  • 113
6
votes
1 answer

Motion-detector for moving camera on OpenCV

When the camera is stationary, then it is easy to detect the movement simply by subtracting the previous frame of the current frame, using optical flow: OpenCV v2.4.9.0: Motion Analysis and Object Tracking OpenCV v3.0: Motion Analysis and Object…
Alex
  • 12,578
  • 15
  • 99
  • 195
6
votes
3 answers

Calculate initial velocity to move a set distance with inertia

I want to move something a set distance. However in my system there is inertia/drag/negative accelaration. I'm using a simple calculation like this for it: v = oldV + ((targetV - oldV) * inertia) Applying that over a number of frames makes the…
MachineElf
  • 1,231
  • 2
  • 15
  • 28
6
votes
2 answers

Vertical movement sensor

I am working on an android app that requires the detection of vertical motion. When moving the tablet upward, the Gyroscope, Accelerometer, and Linear Acceleration sensors give a corresponding value indicating upward or downward motion. The problem…
user1795223
  • 291
  • 1
  • 3
  • 8
6
votes
1 answer

detecting motion on opencv c++ (moving camera)

I'm doing a project for the university and I'm working with OpenCV (that is really awesome). Now my problem is: I have a video (.avi) and I have detected all the information I want to know about the blobs that suddenly appear in the RGB range…
Lorenzo
  • 673
  • 1
  • 11
  • 25
5
votes
2 answers

Moving an image from A to B with JavaScript

Its my first time here and I don't know how to indent this sorry :/ I have an image of a van and I am trying to move it across the screen to as if it is driving. Once that is done I will scale the image to appear as if it is moving away (and getting…
Ozzy
  • 8,244
  • 7
  • 55
  • 95
5
votes
4 answers

How can I reproduce the flick-to-scroll behavior of the iPhone UIScrollView in my own custom view?

I would like to reproduce UIScrollView's flick-to-scroll behavior, but I don't want to use (or can't use) that class. What can I do?
Dave Peck
  • 1,342
  • 1
  • 17
  • 24
5
votes
1 answer

Android: catch MotionEvent across activities

I have two activities A and B. I would like to have one touch event MotionEvent.ACTION_DOWN caught in A, while still holding down, launch B, then having the release event MotionEvent.ACTION_UP be caught in B. In A there is a View v that has an…
Eric Chen
  • 3,562
  • 7
  • 39
  • 58
5
votes
1 answer

Android: ViewGroup, how to intercept MotionEvent and then dispatch to target or eat it on demand?

Given that there is a ViewGroup with several children. As for this ViewGroup, I'd like to have it managing all MotionEvent for its all children, which says VG will 1. be able to intercept all events before they get dispatched to target (children) 2.…
fifth
  • 4,249
  • 9
  • 45
  • 62
5
votes
1 answer

How much motion is needed to trigger Significant Motion

Tested the Significant Motion sample on android.googlesource.com to learn more on this Trigger sensor. Unfortunately the sensor does not trigger. What do I do wrong? code snipes class TriggerListener extends TriggerEventListener { private…
Frits Molenkamp
  • 175
  • 1
  • 10
5
votes
2 answers

How to connect leap-motion , directly to android

i am working on an android application that requires to be controlled by LEAP-motion. the leap sdk currently only supports windows and mac. but is there a way (any open library/tutorial etc.) to make the leap motion device talk to an android phone?…
Syed Usman
  • 300
  • 3
  • 8
5
votes
2 answers

How to use CoreMotion for getting device orientation in space

I am having a thinking and searching problem here and can't find the good direction to look at... I am looking to develop an algorithm to move in a 360 image (sphere like) by using the device motion. So if the user point the device in front of him…
5
votes
5 answers

Motion to last character

Is there a motion to move to the last of a character? Example: [A]pple -> move to last p -> Ap[p]le I can do that with 2fp but if there's lots of "p"s in the line then it's not so easy to count them then do 10fp
Lerp
  • 2,957
  • 3
  • 24
  • 43
5
votes
2 answers

Simulate the gravitational pull of a star?

I'm making a game where the player will (on release of mouseclick) shoot a "star" in a certain direction at an initial speed determined by how far he dragged the mouse before releasing. I have a "planet" (stationary circle) on the canvas that I want…
user1811903
  • 51
  • 1
  • 3
4
votes
1 answer

Calculating camera motion out of corresponding 3d point sets

I am having a little problem. I wrote a program that extracts a set of three-dimensional points in each frame using a camera and depth information. The points are in the camera coordinate system, which means the origin is at the camera center, x is…
1 2
3
38 39