CROSS REFERENCE TO RELATED APPLICATIONSThis application is a continuation-in-part of co-pending parent patent applications Ser. No. 08/846,011, now U.S. Pat. No. 6,147,674 filed Apr. 25, 1997, entitled, “Method and Apparatus for Designing and Controlling Force Sensations in Force Feedback Computer Applications”; Ser. No. 08/877,114, now U.S. Pat No. 6,169,540, filed Jun. 17, 1997, entitled, “Method and Apparatus for Designing Force Sensations in Force Feedback Computer Applications”; and Ser. No. 09/243,209, filed Feb. 2, 1999, entitled, “Designing Force Sensations for Computer Applications Including Sounds,” all of which are incorporated by reference herein in their entirety.
BACKGROUND OF THE INVENTIONThe present invention relates generally to interface devices for allowing humans to interface with computer systems, and more particularly to computer interface devices that provide input from the user to computer systems and implement force feedback to the user.
Using an interface device, a user can interact with an environment displayed by a computer system to perform functions and tasks on the computer, such as playing a game, experiencing a simulation or virtual reality environment, using a computer aided design system, operating a graphical user interface (GUI), or otherwise influencing events or images depicted on the screen. Common human-computer interface devices used for such interaction include a joystick, mouse, trackball, stylus, tablet, pressure-sensitive ball, or the like, that is connected to the computer system controlling the displayed environment. Typically, the computer updates the environment in response to the user's manipulation of a user-manipulatable physical object such as a joystick handle or mouse, and provides visual and audio feedback to the user utilizing the display screen and audio speakers. The computer senses the user's manipulation of the user object through sensors provided on the interface device that send locative signals to the computer.
In some interface devices, haptic feedback is also provided to the user, also known as “force feedback.” These types of interface devices can provide physical sensations which are felt by the user manipulating a user manipulable object of the interface device. For example, the Force-FX joystick controller from CH Products, Inc. or the Wingman Force joystick from Logitech, Inc. may be connected to a computer and provides forces to a user of the controller. Other systems might use a force feedback mouse controller. One or more motors or other actuators are used in the device and arc connected to the controlling computer system. The computer system controls forces on the joystick in conjunction and coordinated with displayed events and interactions by sending control signals or commands to the actuators. The computer system can thus convey physical force sensations to the user in conjunction with other supplied feedback as the user is grasping or contacting the joystick or other object of the interface device. For example, when the user moves the manipulatable object and causes a displayed cursor to interact with a different displayed graphical object, the computer can issue a command that causes the actuator to output a force on the user object, conveying a feel sensation to the user.
A problem with the prior art development of force feedback sensations in software is that the programmer of force feedback applications does not have an intuitive sense as to how forces will feel when adjusted in certain ways, and thus must go to great effort to develop characteristics of forces that are desired for a specific application. For example, a programmer may wish to create a specific spring and damping force sensation between two graphical objects, where the force sensation has a particular stiffness, play, offset, etc. In current force feedback systems, the programmer must determine the parameters and characteristics of the desired force by a brute force method, by simply setting parameters, testing the force, and adjusting the parameters in an iterative fashion. This method can be cumbersome because it is often not intuitive how a parameter will affect the feel of a force as it is actually output on the user object; the programmer often may not even be close to the desired force sensation with initial parameter settings. Other types of forces may not be intuitive at all, such as a spring having a negative stiffness, and thus force sensation designers may have a difficult time integrating these types of sensations into software applications.
Furthermore, designers may have a difficult time synchronizing force sensations with each other, especially compound force sensations which include multiple individual force sensations. For example, a particular force sensation such as a collision may be accompanied by another force sensation such as an “earthquake” vibration. It can often be difficult to coordinate multiple simultaneous force sensations, especially when each of the force sensations starts and stops at different times and has a different duration.
SUMMARY OF THE INVENTIONThe present invention is directed to designing force sensations output by a force feedback interface device. A controlling host computer provides a design interface tool that allows intuitive and simple design of a variety of force sensations and also allows multiple force sensations to be included in a compound force sensation.
More particularly, a design interface for designing force sensations for use with a force feedback interface device is described. The force sensation design interface is displayed on a display device of a host computer. Input from a user selects one or more force sensations to be commanded by a host computer and output by a force feedback interface device. Each force sensation preferably is provided with its own design parameters and design window, and the user can design and define physical characteristics of the selected force sensations. A graphical representation of the characterized force sensation is displayed on a display device of the host computer. Multiple force sensations can be included in a compound force sensation based on input received from the user, and a time-based graphical representation of the compound force sensation is displayed. For example, the time-based graphical representation can include a bar graph for each of the individual force sensations in the compound sensation indicating a start time and duration of each of the individual force sensations relative to each other. Multiple such compound force sensations can be designed and displayed simultaneously.
Preferably, the compound force sensation is output by the force feedback interface device coupled to the host computer to the manipulandum in conjunction with updating the graphical demonstration of the compound force sensation. The graphical representation provides the user with a visual demonstration of the individual force sensations included in the compound force sensation. Changes to at least one of the individual force sensations can be made by the user after the compound force sensation is output and the changes are displayed in the compound graphical representation. The user can also easily adjust the start times and durations of the individual force sensations using the graphical representation. Thus, in an iterative process, the user can design effective compound force sensations through actual experience of those sensations. The design interface can be implemented using program instructions stored on a computer-readable medium. In addition, one or more sounds can be assigned to individual force sensations in the compound force effect or can be assigned to the compound force effect directly. The sounds can preferably be displayed alongside the individual forces in the compound graphical representation.
The present invention advantageously provides a simple, easy-to-use design interface tool for designing force feedback sensations. Given the large variety of possible force sensations and the often unexpected results when modifying the several parameters of force sensations, the design interface tool of the present invention meets the needs of force sensation designers that wish to create force sensations as close to their needs as possible. The graphical design interface of the present invention allows a force sensation designer to easily, intuitively, and simultaneously design and modify individual force sensations and compound force sensations that include multiple different individual force sensations and arrange those individual force sensations to be output at desired times with respect to each other, allowing more effective force feedback to be implemented in games, simulations, graphical interfaces, and other applications.
These and other advantages of the present invention will become apparent to those skilled in the art upon a reading of the following specification of the invention and a study of the several figures of the drawing.
BRIEF DESCRIPTION OF THE DRAWINGSFIG. 1 is a block diagram of a system for controlling a force feedback interface device suitable for use with the present invention;
FIG. 2 is a perspective view of an embodiment of a mechanism for interfacing a user manipulatable object with the force feedback device of FIG. 1;
FIG. 3 is a diagram of a displayed interface of the present invention for designing force sensations;
FIG. 4 is a diagram of the interface of FIG. 3 in which a design window for a spring condition is displayed;
FIG. 5 are diagrams of the interface of FIG. 3 in which an alternative design window for a spring condition is displayed;
FIG. 6 is a diagram of the interface of FIG. 3 in which a design window for a periodic wave is displayed; and
FIG. 7 is a diagram of an embodiment of an interface of the present invention allowing the design of compound force sensations.
DETAILED DESCRIPTION OF PREFERRED EMBODIMENTSFIG. 1 is a block diagram illustrating a forcefeedback interface system10 for use with the present invention controlled by a host computer system.Interface system10 includes ahost computer system12 and aninterface device14.
Host computer system12 is preferably a personal computer, such as an IBM-compatible or Macintosh personal computer, or a workstation, such as a SUN or Silicon Graphics workstation. Alternatively,host computer system12 can be one of a variety of home video game systems, such as systems available from Nintendo, Sega, or Sony, a television “set top box” or a “network computer”, etc.Host computer system12 preferably implements a host application program with which auser22 is interacting via peripherals andinterface device14. For example, the host application program can be a video game, medical simulation, scientific analysis program, operating system, graphical user interface, or other application program that utilizes force feedback. Typically, the host application provides images to be displayed on a display output device, as described below, and/or other feedback, such as auditory signals.
Host computer system12 preferably includes ahost microprocessor16, random access memory (RAM)17, read-only memory (ROM)19, input/output (I/O)electronics21, aclock18, adisplay screen20, and anaudio output device21.Display screen20 can be used to display images generated byhost computer system12 or other computer systems, and can be a standard display screen, CRT, flat-panel display, 3-D goggles, or any other visual interface.Audio output device21, such as speakers, is preferably coupled tohost microprocessor16 via amplifiers, filters, and other circuitry well known to those skilled in the art (e.g. in a sound card) and provides sound output touser22 from thehost computer18. Other types of peripherals can also be coupled tohost processor16, such as storage devices (hard disk drive, CD ROM/DVD-ROM drive, floppy disk drive, etc.), printers, and other input and output devices. Data for implementing the interfaces of the present invention can be stored on computer readable media such as memory (RAM or ROM), a hard disk, a CD-ROM or DVD-ROM, etc.
Aninterface device14 is coupled tohost computer system12 by abi-directional bus24. The bi-directional bus sends signals in either direction betweenhost computer system12 and the interface device. An interface port ofhost computer system12, such as an RS232 or Universal Serial Bus (USB) serial interface port, parallel port, game port, etc., connectsbus24 tohost computer system12.
Interface device14 includes alocal microprocessor26,sensors28,actuators30, auser object34,optional sensor interface36, anoptional actuator interface38, and otheroptional input devices39.Local microprocessor26 is coupled tobus24 and is considered local tointerface device14 and is dedicated to force feedback and sensor I/O ofinterface device14.Microprocessor26 can be provided with software instructions to wait for commands or requests fromcomputer host16, decode the command or request, and handle/control input and output signals according to the command or request. In addition,processor26 preferably operates independently ofhost computer16 by reading sensor signals and calculating appropriate forces from those sensor signals, time signals, and stored or relayed instructions selected in accordance with a host command. Suitable microprocessors for use aslocal microprocessor26 include the MC68HC711E9 by Motorola, the PIC16C74 by Microchip, and the 82930AX by Intel Corp., for example.Microprocessor26 can include one microprocessor chip, or multiple processors and/or co-processor chips, and/or digital signal processor (DSP) capability.
Microprocessor26 can receive signals fromsensors28 and provide signals to actuators30 of theinterface device14 in accordance with instructions provided byhost computer12 overbus24. For example, in a preferred local control embodiment,host computer system12 provides high level supervisory commands tomicroprocessor26 overbus24, andmicroprocessor26 manages low level force control loops to sensors and actuators in accordance with the high level commands and independently of thehost computer18. The force feedback system thus provides a host control loop of information and a local control loop of information in a distributed control system. This operation is described in greater detail in U.S. Pat. No. 5,739,811 and patent application Ser. Nos. 08/877,114 and 08/050,665 (which is a continuation of U.S. Pat. No. 5,734,373), all incorporated by reference herein.Microprocessor26 can also receive commands from anyother input devices39 included oninterface apparatus14, such as buttons, and provides appropriate signals tohost computer12 to indicate that the input information has been received and any information included in the input information.Local memory27, such as RAM and/or ROM, is preferably coupled tomicroprocessor26 ininterface device14 to store instructions formicroprocessor26 and store temporary and other data. In addition, alocal clock29 can be coupled to themicroprocessor26 to provide timing data.
Sensors28 sense the position, motion, and/or other characteristics of auser object34 of theinterface device14 along one or more degrees of freedom and provide signals tomicroprocessor26 including information representative of those characteristics. Rotary or linear optical encoders, potentiometers, optical sensors, velocity sensors, acceleration sensors, strain gauge, or other types of sensors can be used.Sensors28 provide an electrical signal to anoptional sensor interface36, which can be used to convert sensor signals to signals that can be interpreted by themicroprocessor26 and/orhost computer system12.
Actuators30 transmit forces touser object34 of theinterface device14 in one or more directions along one or more degrees of freedom in response to signals received frommicroprocessor26.Actuators30 can include two types: active actuators and passive actuators. Active actuators include linear current control motors, stepper motors, pneumatic/hydraulic active actuators, a torquer (motor with limited angular range), a voice coil actuators, and other types of actuators that transmit a force to move an object. Passive actuators can also be used foractuators30, such as magnetic particle brakes, friction brakes, or pneumatic/hydraulic passive actuators.Actuator interface38 can be optionally connected betweenactuators30 andmicroprocessor26 to convert signals frommicroprocessor26 into signals appropriate to driveactuators30.
Other input devices39 can optionally be included ininterface device14 and send input signals tomicroprocessor26 or to hostprocessor16. Such input devices can include buttons, dials, switches, levers, or other mechanisms. For example, in embodiments where user object34 is a joystick, other input devices can include one or more buttons provided, for example, on the joystick handle or base.Power supply40 can optionally be coupled toactuator interface38 and/oractuators30 to provide electrical power. Asafety switch41 is optionally included ininterface device14 to provide a mechanism to deactivateactuators30 for safety reasons.
User manipulable object34 (“user object” or “manipulandum”) is a physical object, device or article that may be grasped or otherwise contacted or controlled by a user and which is coupled tointerface device14. By “grasp”, it is meant that users may releasably engage a grip portion of the object in some fashion, such as by hand, with their fingertips, or even orally in the case of handicapped persons. Theuser22 can manipulate and move the object along provided degrees of freedom to interface with the host application program the user is viewing ondisplay screen20.Object34 can be a joystick handle, mouse, trackball, stylus (e.g. at the end of a linkage), steering wheel, sphere, medical instrument (laparoscope, catheter, etc.), pool cue (e.g. moving the cue through actuated rollers), hand grip, knob, button, or other article.
FIG. 2 is a perspective view of one embodiment of amechanical apparatus100 suitable for providing mechanical input and output tohost computer system12.Apparatus100 is appropriate for ajoystick orsimilar user object34.Apparatus100 includesgimbal mechanism140,sensors28 andactuators30.User object34 is shown in this embodiment as a joystick having agrip portion162.
Gimbal mechanism140 provides two rotary degrees of freedom to object34. A gimbal device as shown in FIG. 4 is described in greater detail U.S. Pat. No. 5,767,839, incorporated herein by reference in its entirety.Gimbal mechanism140 provides support forapparatus100 on groundedsurface142, such as a table top or similar surface.Gimbal mechanism140 is a five-member linkage that includes aground member144,extension members146aand146b, andcentral members148aand148b.Gimbal mechanism140 also includescapstan drive mechanisms164.
Ground member144 includes abase member166 andvertical support members168.Base member166 is coupled to groundedsurface142. The members ofgimbal mechanism140 are rotatably coupled to one another through the use of bearings or pivots.Extension member146ais rigidly coupled to acapstan drum170 and is rotated about axis A ascapstan drum170 is rotated. Likewise,extension member146bis rigidly coupled to theother capstan drum170 and can be rotated about axis B. Central drivemember148ais rotatably coupled toextension member146aand can rotate about floating axis D, andcentral link member148bis rotatably coupled to an end ofextension member146bat a center point P and can rotate about floating axis E. Central drivemember148aandcentral link member148bare rotatably coupled to each other at the center of rotation of the gimbal mechanism, which is the point of intersection P of axes A and B. Bearing172 connects the twocentral members148aand148btogether at the intersectionpoint P. Sensors28 andactuators30 are coupled to theground member144 and to the members146 through thecapstan drum170.
Gimbal mechanism140 provides two degrees of freedom to anobject34 positioned at or near to the center point P of rotation, whereobject34 can be rotated about axis A and/or B. In alternate embodiments, object34 can also be rotated or translated in other degrees of freedom, such as a linear degree of freedom along axis C or a rotary “spin” degree of freedom about axis C, and these additional degrees of freedom can be sensed and/or actuated. In addition, acapstan drive mechanism164 can be coupled to eachvertical member168 to provide mechanical advantage without introducing friction and backlash to the system.
Other types of mechanisms can be used in other embodiments, e.g. for a joystick, mouse, steering wheel, trackball, pool cue, or other force feedback interface device; some examples of mechanisms and devices are disclosed in patent application Ser. Nos. 08/877,114; 08/961,790; (now U.S. Pat. No. 6,020,875) 08/965,720; and 09/058,259, (now U.S. Pat. No. 6,140,382) all incorporated by reference herein.
Design of Force Feedback SensationsBecause force feedback devices can produce such a wide variety of feel sensations, each with its own unique parameters, constraints, and implementation issues, the overall spectrum of force sensations has been divided herein into subsets. Herein, three classes of feel sensations are provided: spatial conditions (“conditions”), temporal effects (“effects” or “waves”), and dynamic sensations (“dynamics”). Conditions are force sensations that arc a function of user motion of themanipulatable object34, effects are force sensations that are played back over time independently of user object position or motion, and dynamics are force sensations that are based on an interactive dynamic model of motion and time. These three types of force sensations are described in greater detail in parent application Ser. No. 08/846,011, incorporated by reference herein. Preferred standard types of conditions include springs, dampers, inertia, friction, texture, and walls. Three basic types of effects include periodic, constant force (vector force), and ramp. Dynamic sensations involve real-time physical interactions based on 1) user motion and 2) a physical system wherein user motion during the interaction affects the behavior of the physical system. Each dynamic sensation, for example, can be based on a simulated basic physical system including a dynamic mass that is connected to theuser object34 by a simulated spring and a simulated damper.
FIG. 3 illustrates adisplay device20 displaying an interactiveforce design interface300 that enables developers and programmers of force feedback (“users” of the interface) to design and implement force sensations rapidly and efficiently. The graphical environment allows conditions, effects (“waves”), and dynamics to be defined through intuitive graphical metaphors that convey the physical meaning of each parameter involved. As the parameters are manipulated, sensations can be felt in real-time, allowing for an iterative design process that fine-tunes the feel to the designer's exact need. Once the appropriate sensation is achieved, the interface can save the parameters as a resource and automatically generate optimized code in a desired format that can be used directly within an application program. Thus,interface300 handles most of the force feedback development process from force sensation design to coding. With these tools, force feedback programming becomes a fast and simple process.
The challenge of programming for force feedback is not the act of coding. Force models to provide force sensations are available, and, once the desired force sensation is known and characterized, it is straightforward to implement the force sensation using software instructions. However, the act of designing force sensations to provide a desired feel that appropriately match gaming or other application events is not so straightforward. Designing force sensations and a particular feel requires a creative and interactive process where parameters are defined, their effect experienced, and the parameters arc modified until the sensations are at the desired characterization. For example, when designing conditions, this interactive process might involve setting the stiffness of springs, sizing the deadband, manipulating the offset, and tuning the saturation values. When designing effects, this might involve selecting a wave source (sine, square, triangle, etc.), setting the magnitude, frequency, and duration of the signal, and then tuning the envelope parameters. For a dynamic sensation, this might involve setting the dynamic mass, and then tuning resonance and decay parameters. With so many parameters to choose from, each applicable to a different type of force sensation, there needs to be a fast, simple, and interactive means for sensation design. To solve this need, thegraphical interface300 of the present invention allows a user to rapidly set physical parameters and feel sensations, after which the interface automatically generates the appropriate code for use in a host computer application program.
Interface300 enables interactive real-time sensation design of conditions, effects, and dynamics, where parameters can be defined and experienced through a rapid iterative process. Thus, it is preferred that a forcefeedback interface device14 be connected to thecomputer implementing interface300 and be operative to output commanded force sensations. Intuitive graphical metaphors that enhance a programmer's understanding of the physical parameters related to each sensation type are provided ininterface300, thereby speeding the iterative design process. File-management tools are also preferably provided ininterface300 so that designed force sensations can be saved, copied, modified, and combined, thereby allowing a user to establish a library of force sensations. Once sensations are defined, theinterface300 preferably stores the parameters as “resources” which can be used by an application program. For example, by linking a force sensation resource into an application program, the resources can be converted into optimized Direct-X code for use in an application in the Windows environment. Other code formats or languages can be provided in other embodiments.Interface300 can be implemented by program instructions or code stored on a computer readable medium, where the computer readable medium can be either a portable or immobile item and may be semiconductor or other memory of the executing computer (such as computer12), magnetic hard disk or tape, portable disk, optical media such as CD-ROM, PCMCIA card, or other medium.
As shown in FIG. 3, theinterface300 has three primary work areas: thesensation pallet302, thebutton trigger pallet304, and thedesign space306. Force sensations are created in thedesign space306 and can be saved and loaded into that space using standard file handling features.
To create a new force sensation, a sensation type is chosen from thesensation pallet302.Pallet302 is shown in an expandable tree format. The root of the tree includes the threeclasses310 of force feedback sensations described herein, conditions, waves (effects), and dynamics. Preferably, users can also define their own headings; for example, a “Favorites” group can be added, where force sensations with desirable previously-designed parameters are stored.
Ininterface300, the conditions, waves, and dynamics classes are shown in expanded view. These classes may also be “compressed” so as to only display the class heading, if desired. When a class is displayed in expanded view, theinterface300 displays a listing of all the sensation types that are supported by the hardware connected to thehost computer12 for that class. For example, when programming for more recent or expensive hardware supporting a large number of force sensation types, a list including many or all available sensation types is displayed. When programming for older or less expensive interface device hardware that may not implement all the sensations, some sensation types can be omitted or unavailable to be selected in the expanded view. Preferably,interface300 can determine exactly what force sensations arc supported by a giveninterface device14 connected to the host computer by using an effect enumeration process, i.e., the host computer can request information from the interface device, such as a version number, date of manufacture, list of implemented features, etc.
Once a sensation type is chosen from thesensation pallet302, the sensation type is added to thedesign space306. For example, in FIG. 3, anicon308 for the selected force sensation “Damper” is displayed within thedesign space306 window.Icon308 can now be selected/opened by the user in order to set the parameters for the given sensation type using graphical development tools (described below). Multiple icons can similarly be dragged to the design space to create a more complex force sensation. Once the parameters are specified for the given sensation, the sensation can be saved as a resource file. Using this process, a user can create a diverse library of feel sensations as resource files. Also, predefined libraries of sample resources from third party sources might also be available.
Options displayed in thetrigger button pallet304 can also be selected by the user.Trigger pallet304 is used for testing force sensations that are going to be defined as button reflexes. For example, a force sensation might be designed as a combination of a square wave and a sine wave that triggers whenButton #2 of the interface device is pressed. The square wave would be created by choosing theperiodic type312 from thesensation pallet302 and defining parameters appropriate for the square wave. A sine wave would then be created by choosing anotherperiodic type312 from thesensation pallet302 and defining the parameters appropriate for the sine wave. At this point, twoperiodic icons308 would be displayed in thedesign space window306. To test the simultaneous output of the square wave and sine wave, the user can just drag and drop theseicons308 into theButton2icon314.Button2 on theinterface device14 has thus been designed to trigger the reflex sensation when pressed. This process is fast, simple, and versatile. When the user achieves a sensation exactly as desired, the sensation can be saved as a resource file and optimized software code for use in the application program is generated. TheButton2 selection might be provided in other ways in different embodiments. For example, the user might select or highlight the designed force icons indesign space306 and then select theButton2 icon inpallet304 to indicate that the highlighted forces will be triggered byButton2. Furthermore, sounds can also preferably be associated with the button icons inpallet304 so that a sound is output when the button is pressed, synchronized with the force sensation(s) also associated with that button. Such a feature is described in greater detail in copending patent application Ser. No. 09/243,209, entitled, “Designing Force Sensations for Computer Applications Including Sounds”, filed Feb. 2, 1999 and incorporated herein by reference.
FIG. 4 illustratesinterface300 where a force sensation is characterized in thedesign space306. When anicon308 indesign space306 is selected by the user, theicon308 expands into a force sensation window and graphical environment for setting and testing the physical parameters associated with the selected sensation. For example, in FIG. 4, aspring sensation type320 has been selected from thecondition list322 and provided asicon324 in thedesign space306. Aspring window326 is displayed indesign space306 whenicon324 is selected. Withinspring window326 arefields328 characterizing the force, including the axis330 (and/or direction, degree of freedom, etc.) in which the force is to be applied, the gain332 (or magnitude) of the force, and theparameters334 associated with the force sensation. For example, for the spring sensation, the positive stiffness (“coefficient”), negative stiffness (“coefficient”), positive saturation, negative saturation, offset, and deadband of the spring sensation are displayed as parameters. The user can input desired data into thefields328 to characterize the force. For example, the user has specified that the force is to be applied along the x-axis (in both directions, since no single direction is specified, has specified a gain of 100, and has specified saturation values of 10,000 in positive and negative directions. The user can also preferably specify all or some of the parameters in graphical fashion by adjusting the size or shape of the envelope, the height or frequency of the waveform, the width of the deadband or springs, the location of a wall on an axis, etc. by using a cursor or other controlled graphical object.
As the user inputs values intofields328, the resulting additions and changes to the force sensation are displayed in an intuitive graphical format in the force sensation window. For example, in thespring sensation window326,graphical representation336 is displayed.Representation336 includes animage338 of the user object34 (shown as a joystick, but which also can be shown as other types of user objects), animage340 of ground, animage342 of a spring on the right of thejoystick34, and animage344 of a spring on the left of thejoystick34.Representation336 models a single axis or degree of freedom of the interface device.
Representation336 represents a physical, graphical model with which the user can visually understand the functioning of the force sensation. Theuser object image338 is displayed preferably having a shape similar to the actual user object of the desired interface device (a joystick in this example). Along the displayed axis, in both directions, there arespring images342 and344 as defined by a positive stiffness parameter (k) and a negative stiffness parameter (k). Graphically, the large stiffness of the spring to the right (coefficient of 80) is represented as alarger spring image342. The origin of the spring condition is shown at acenter position346, since the offsetparameter348 is zero. If the offset has a positive or negative magnitude, the origin would be displayed accordingly toward the left or right. The deadband region is shown graphically as the gap between theuser object image338 and thespring images342 and344.
In the preferred embodiment, the graphical representation further helps the user visualize the designed force sensation by being updated in real time in accordance with the movement of theuser object34 of theconnected interface device14.User object image338 will move in a direction corresponding to the movement ofuser object34 as caused by the user. The user object is free to be moved in either the positive or negative direction along the given axis and encounter either a positive or negative stiffness from the spring sensation. Thus, if the user object is freely moved to the left fromorigin346, thejoystick image338 is moved left in the deadband region and no force is output. When theuser object34 encounters the spring resistance, thejoystick image338 is displayed contacting thespring image344. If there is no deadband defined, thespring images342 and344 are displayed as contacting thejoystick image338 at the center position. Theedge stop images350 define the limits to the degree of freedom; for example, when theuser object34 is moved to a physical limit of the interface device along an axis, thejoystick image338 is displayed as contacting an appropriateedge stop image350.
When thejoystick image338 contacts aspring image342 or344, thatspring image342 is displayed compressed an appropriate amount. Once a spring stiffness is encountered, the resistance force increases linearly with compression of the spring (as is true of a real spring). The amount of compression felt by the user is correlated with the amount of compression shown byspring image342. If the programmer has defined a saturation value for force opposing movement in the positive direction, the force output would cease increasing with compression once the saturation limit in the positive direction was exceeded.
Once the user has tested the input parameters and settings, he or she may change any of the existing information or add new information by inputting data intofields328. Any such changes will instantly be displayed inwindow326. For example, if the user changes the coefficient (stiffness) of the spring on the right, thespring image342 will immediately be changed in size to correlate with the new value. The user thus gains an intuitive sense of how the sensation will feel by simply viewing therepresentation336. The user can then determine how the sensation will feel with more accuracy (fine tuning) by moving the user object and feeling the sensation. Thus, thegraphical representation336 as displayed clearly demonstrates to the user the various effects of parameters on the force sensation and additionally allows the user to experience the forces coordinated with the graphical representation.
Other graphical representations can be displayed ininterface300 for spatial texture conditions, wall conditions, damping conditions, inertia conditions, friction conditions, etc. as described in application 08/877,114. In other embodiments, a 2-dimensional force sensation (i.e. two degrees of freedom) can be displayed in thewindow326 by showing an overhead representation of the user object. For example, a circular user object image can be displayed in the middle of two sets of spring images in a cross formation, each set of springs for a different degree of freedom.
FIG. 5 illustratesinterface300 displaying an alternative graphical representation of a spring condition. FIG. 5 also shows the variety ofconditions400 available to be selected from the condition list. The representation used in FIG. 4 can be used for a spring condition as well. In FIG. 6, the user has selectedspring icon401 in thedesign space306. Aspring condition window402 is displayed in thedesign space306 whenicon401 is selected. Thespring window402 includesparameters404 for characterizing the spring force, as well asgain406 andaxis control408. A window is displayed for each axis in which the force is to be applied. A greyed out window for the second axis condition indicates that no force is presently assigned to that axis.
Infirst axis window410, a simple mode and advanced mode is available; in FIG. 5, simple mode has been selected by the user.Spring images412 are displayed from each edge ofwindow410, wherespring image412ais for the negative direction andspring image412bis for the positive direction. When the user moves the user object along the displayed axis (the x-axis),line414 moves in the corresponding direction. When theline414 moves into aspring image412, the microprocessor outputs the specified spring force on the user object so the user can feel the characterized force sensation. As the user object continues to be moved into the spring, the spring image compresses as a real spring would. The empty space betweenspring images412 indicates the deadband region where no forces are output. In the preferred embodiment, the user may adjust the stiffness (k) of the spring force by selectingcontrol points422 at the edges of the front of thespring images412 with a cursor. The user can drag the control points to adjust the widths of the spring images, which in turn adjusts the stiffness parameter. A thicker spring image indicates a larger stiffness parameter, and a stronger spring force. The user may also move the front ends of the spring images closer together or further apart, thus adjusting the deadband and offset parameters. As parameters are adjusted, they are sent to the local microprocessor which then implements the newly characterized force on the user object (if appropriate).
Icons are also preferably provided to help the user with the design of force sensations from previously stored force sensations. For example,clip objects icon424, when selected, provides the user with a list or library of predefined, common force sensations that the user can use as a base or starting point, i.e., the user can modify a common spring condition configuration to quickly achieve a desired force. This library can be provided, for example, from commercial force providers or other sources, or can be a custom-made library.
FIG. 6 illustratesinterface300 with a graphical representation for a periodic wave (effect) force sensation.Periodic window440 is displayed in response to the user selecting (e.g., double clicking on)periodic effect icon442 that has been dragged intodesign space306. Inwindow440,waveform source field444 allows a user to select from multiple available types of signal wave sources for the effect. The user is allowed to select the duration of the periodicwave using sliders446, and may also select an infinite duration withbox448. The gain and offset may be selected usingsliders450, and other parameters are provided infields452. A graphical representation of the periodic waveform is displayed inwindow454 having a shape based on the wave source chosen and based on the other selected parameters (or default parameters if no parameters are chosen). Envelope parameters infields452 can be graphically adjusted by the user by draggingcontrol points456 of the waveform. A frequency of the waveform can be adjusted by dragging a displayed wave to widen or narrow the displayed oscillations of the wave, or by specifying the period infield458. Trigger buttons for the periodic wave can be determined infields460 to assign physical button(s) or controls to the designed effect, and the direction of the periodic wave in the user object workspace is determined usingdial462 andfield464. Therepeat interval field460 allows a user to specify the amount of time before the effect is repeated if the designated button is held down. These parameters and characteristics can be entered as numbers in the displayed input fields or prompts, or can be input by dragging the graphical representation of the waveform inwindow454 with a cursor to the desired shape or level.
The parameters, when specified, cause the graphical representation to change according to the parameters. Thus, if the user specifies a particular envelope, that envelope is immediately displayed in thewindow454. The user can thus quickly visually determine how specified parameters exactly affect the periodic waveform.
To test the specified periodic wave, the user preferably selectsstart button456, which instructs the microprocessor to output the specified force sensation over time to the user object so the user can feel the force sensation when grasping the user object. In the preferred embodiment, a graphical marker, such as a vertical line or pointer, scrolls across thedisplay window454 from left to right indicating the present portion or point on the waveform currently being output. Or, the waveform can be animated; for example, if an impulse and fade is specified, the wave is animated so that the impulse portion of the waveform is displayed when the impulse force is output on the user object, and the fade is displayed when the output force fades down to a steady state level. Since graphical display is handled by the host computer and force wave generation is (in one embodiment) handled by a local microprocessor, the host display of the marker needs to be synchronized with the microprocessor force generation at the start of the force output. The user can stop the output of the periodic sensation by selecting thestop button458. Other features of a periodic force design interface are described in patent application Ser. No. 08/877,114.
As described above, the normal procedure for a force designer in usinginterface300 is to input parameters for a selected type of force sensation, test the way the force feels by manipulating the user object, adjusting the parameters based on the how the force feels, and iteratively repeating the steps of testing the way the force feels and adjusting the parameters until the desired force sensation is characterized. Normally, the user would then save the resulting parameter set describing this force sensation to a storage medium, such as a hard disk, CDROM, non-volatile memory, PCMCIA card, tape, or other storage space that is accessible to a computer desired to control the force feedback. The user also preferably assigns an identifier to the stored parameter set, such as a filename, so that this force sensation can be later accessed. Thus, other application programs running on a host computer can access the parameter set by this identifier and use the designed force sensation in an application, such as in a game, in a graphical user interface, in a simulation, etc.
Once a force sensation has been designed using the graphical tools as described above, the definition can be saved as a resource of parameters. By accessing the interface resource from an application program, the resource is converted automatically from a parameter set to code in the desired language or format, e.g., DirectX by Microsoft® Corporation for use in the Windows™ operating system. For example, the force feedback resource can be provided as or in a DLL (Dynamic Linked Library) that is linked to an application program. In one embodiment, the DLL can provide the application program with effects defined as completed DirectX Structs (DI_Struct), where the application programmer can then create effects by using the CreateEffect call within DirectX (or equivalent calls in other languages/formats). Or, the DLL can perform the entire process and create the effect for the application program, providing the programmer with a pointer to the sensation. One advantage of using the first option of having the programmer call CreateEffect is that it gives the programmer the opportunity to access the parameters before creating the effect so that the parameters can be modified, if desired.
Compound Force SensationsFIG. 7 illustrates aforce design interface500 including a compound force design feature of the present invention. This feature allows a user to easily design and test sequences of multiple force sensations instead of having to separately test each individual force sensation. This allows faster creation of compound force sensations as well as greater flexibility when designing force sensations that are intended to be output simultaneously for at least part of the duration of the force sensations. Furthermore, another feature of the present invention allows sounds to be designed and their start times adjusted alongside compound force sensations to correlate with desired force sensations.
Interface500 includes asensation palette502, abutton trigger palette504, and adesign space506, similar to these features in theinterface300 described above. The design space can include a number oficons508 representing different force sensations which can be stored in a particular “force resource” file that is written out by theinterface500. Each force sensation in thedesign space506 can be modified by calling up an associated force design window510 which includes a graphical representation of the particular force sensation and several controls to allow modification of the force sensation, as described in detail above. For example, FIG. 7 shows adesign window510afor an “aftershock” periodic force sensation, adesign window510bfor an “angle wall” force sensation, and a force design window510cfor a “bell ringing” force sensation. The parameters of each force sensation can be adjusted individually similarly as described with reference to the above embodiments.
Interface500 also includes a compound force sensation design feature, which is accessed by the user through the use of compound force sensation controls. Preferably, a compoundforce palette icon514 is available in thesensation palette502, like any other force sensations in thepalette502. The user can create a compound force “container” by dragging thecompound icon514 into thedesign space506, similar to any other force sensation as described in the embodiments above. A compound forcesensation container icon516 shows the created compound container in the design space with the other created force sensations. Preferably, the user provides the created compound force container with a name, which will be the identifier for the “compound force sensation,” which is the collection of individual force sensations in the compound container. For example, the identifier forcontainer516 is “Sequence.”
As with any of the force sensations, the user preferably accesses the details of the compound force container by selecting (e.g. double-clicking) theicon516. This causes acompound window518 to be displayed (or other screen area that displays data related to compound force sensations). Upon creation, no force sensations are included in the compound container, and thus no force sensation icons are displayed in thecompound window518. The user can then selectindividual force sensations508 to be included in the compound container, e.g.,force sensation icons508 can be dragged and “dropped” into the window518 (or the force sensations can be dragged into the compound icon516). Preferably, the force sensations are displayed indesign space506 and thus were previously created by the user ininterface500 or loaded into theinterface500 from an external source such as a storage device (hard drive, CDROM, etc.) or another computer/device networked to the host computer running theinterface500. Alternatively, individual force sensations not displayed indesign space506 can be imported into the compound window. A compound container such asicon516 can also preferably be associated with a button icon inbutton palette504, similarly to individual force sensations.
Window518 in FIG. 7 shows an example ofcompound window518 where fourindividual force sensations508 have been dragged into thewindow518, including “aftershock”force sensation520, “angle wall”force sensation522, “bell ringing”force sensation524, and “earthquake”force sensation526. To the right of these displayed icons, atime scale519 is displayed indicating a range of seconds numbered from zero to 60, where each mark on the time scale represents 5 seconds of time. Below the time scale, a horizontal bar graph is displayed for each of the force sensation icons in thewindow518. Thus,bar graphs530,532,534, and536 are associated withforce sensations520,522,524, and526, respectively, and represent the start times and durations of each of the force sensations. Preferably, each bar graph is displayed in a different color or other visual characteristic.Bar graph530 shows a duration for the “aftershock”force sensation520 starting at about the 11thsecond and lasting about 1-2 seconds, which indicates that the jolts from the aftershock are intended to be very short.Bar graph532 shows an infinite duration for theangle wall sensation522, which indicates that the angle wall need not have a duration such as normal periodics, but can be always present (and such is the default duration); the angle wall, for example, has an output dependent on the position of the user manipulandum, such as when a user-controlled cursor moves into the displayed wall.Bar graph534 indicates that thebell ringing sensation524 begins at about second35 and lasts to about second 40. Finally, theearthquake sensation526 is shown to begin at about the 3rdsecond and last until about the 9thsecond. Thus, by examining thewindow518, the user can easily determine that the earthquake sensation is intended to last for some time, followed by a small pause and then the aftershock sensation.
A great amount of flexibility is provided for the user of thecompound window518 in setting the start times and durations of the individual force sensations displayed in thewindow518. The user can preferably adjust the start time of a force sensation by selecting a particular bar graph and moving it horizontally using an input device such as a keyboard, mouse or joystick. For example, the user can select thebar graph536 with a cursor and drag the entire bar graph to the right, so that the force sensation has a new start and end time, but the duration remains constant. Alternatively, the user can also adjust the duration of each force sensation by changing the start time and/or end time of a bar graph. For example, the cursor can be moved over the left edge of a bar graph, so that only the left edge is selected and dragged when the user moves the input device horizontally. The user can adjust the right side of a bar graph in a similar fashion. In other embodiments, the user can adjust the duration, start time, and end time of a bar graph by inputting numbers into entry fields; this can allow more precision in adjusting the bar graphs, e.g. a start time of 3.3 seconds can be entered if such precision is desired. However, such entry fields can alternatively (or additionally) be included in the individual force sensation design windows510, as described below.
When a change is made by the user (or by a program, script, imported file, data, etc.) to a bar graph incompound window518, that change is preferably immediately made to that force sensation and reflected in the individual force sensation design windows510 if those windows510 are currently displayed. For example, if the anglewall bar graph532 is modified, thebar graph544 displayed in the anglewall design window510bis modified in the same way. Furthermore, the displayed delay (start time)field546 andduration field548 for thedesign window510bare preferably updated in accordance with thebar graphs544 and532. Preferably, the other force sensation design windows510 include a bar graph similar tobar graph544 which corresponds to a bar graph incompound window518. Likewise, changes made to any parameters or characteristics of the individual force sensations as displayed in windows510 are preferably immediately updated in a corresponding fashion to those force sensations in the compound force sensation, and the changes are displayed incompound window518 ifwindow518 is displayed.
Astart button540 is also preferably provided to allow the user to output or “play” the force sensations in the compound window using a force feedback device connected to the host computer running theinterface500. When thestart button540 is selected, the user can immediately feel the force sensations and their respective start times and durations with respect to each other. Preferably, a pointer or marker (not shown) is displayed on thetime scale519 and/or bar graphs which moves from the left to the right and indicates the current point in time and the sections of each bar graph currently being output as forces (if any). If an individual force sensation does not have the desired duration or start time, the user can iteratively adjust those parameters in thecompound window518 and play the forces until the desired effect is achieved. Astop button541 can also be included to stop the output of the compound force sensation when selected. Furthermore, a user is preferably able to start the output of any portion of the compound force sensation by selecting a particular point in time with reference to thetime scale519. For example, the user can select a point at the 30-second mark and the force sensations will be output beginning from that selected point. Alternatively, the user can select a start point at the 30-second mark and an end point at the 40-second mark, for example, to output the compound force sensations within that range of time.
The compound container can preferably be stored as a separate compound file that includes references or pointers to the included force sensations. Alternatively, the force sensation data can be stored in the compound file. In some embodiments, a compound force sensation can include one or more “sub” compound force sensations, where each sub compound sensation includes one or more individual force sensations; force sensations in each “sub” compound container can be displayed or hidden from view as desired. Furthermore, the sub compound containers can include lower-level compound force sensations, and so on. The information for each sub compound container can be stored in the highest-level compound sensation file, or each sub compound sensation can be stored separately and referenced by data in higher-level compound sensation files.
In other embodiments, a compound force sensation can be selected and represented in other ways. For example, a menu option can be used to create a compound container, and the individual force sensations within the container can be represented using vertical bar graphs, circular graphs, or other graphical representations. In addition, additional information concerning each included force sensation can be displayed in thecompound window518, such as the periodic graphs, force magnitude information, trigger events, etc.
In a different embodiment, sounds can also be designed and displayed or indicated incompound window518. For example, one or more sound files, such as a “wav” file, mp3 file, or other standard, can be associated with a button icon inpalette504. As described in co-pending patent application 09/243,209, entitled, “Designing Force Sensations for Computer Applications Including Sounds”, filed Feb. 2, 1999, when one or more sound files have been attached to a button icon, the sound files are played on speakers attached to the computer when the associated button on the force feedback interface device is pressed by the user. In addition, any force sensations assigned to that button icon are played at the same time as the sound when the button is pressed. Preferably, the start of the force sensation is synchronized with the start of the sound effect played. The force sensation and sound can also be played when a control ininterface500 is activated by the user, such as a graphical button or icon ininterface500. When one or more sounds are associated with a button icon, an indicator is displayed that indicates the button icon has associated sounds. Furthermore, one or more compound force sensations can also be associated with a button icon inbutton palette504 so that all the force sensations in the compound container(s) will begin at the press of the associated physical button and in conjunction with any sounds associated with that button icon.
Alternatively, one or more sounds or sound files can be associated directly with anindividual force sensation508. An indicator closely associated with the icons of the force sensations, such asicons508, preferably indicates that sounds are associated with that force sensation; for example, a musical note image can be provided on force sensations having associated sounds. In some embodiments, sounds can also be directly associated with a compound force sensation (e.g.,container516 and window518) rather than associated with an individual force sensation or with a button icon.
In some embodiments, ifcompound window518 is used, the sounds associated with a force sensation, associated with the compound container, or associated with a button with which the compound container is also associated, can preferably be displayed as bar graphs within thetime scale519 similar to the bar graphs for the force sensations. For example, if an individual force sensation has a directly-associated sound, a note image can be provided on theforce sensation icon520,522,524, or526, or can be displayed alongside the icon. Alternatively, a sound bar graph can be displayed alongside or within thebar graph530, etc. for the force sensation. For example, a smaller, thinner bar graph representing the duration of the associated sound can be displayed within thebar graph536 to indicate the starting time and duration of the associated sound. If a sound is associated with the entire compound force sensation, then separate sound bar graphs can be displayed after or before the bar graphs for the individual force sensations to be referenced by thesame time scale519.
The user can preferably adjust the start time (delay) and/or duration of the sounds similarly to adjusting the force sensations in thewindow518 to allow flexibility in determining when sounds will start and stop with respect to force sensations. In yet other embodiments, sounds can be displayed as waveforms similarly to the waveforms for force sensations shown indesign windows510aand510c,and can be adjusted in magnitude, duration, start time, or even more fundamentally if advanced sound editing features are included in the interface.
While this invention has been described in terms of several preferred embodiments, it is contemplated that alterations, permutations and equivalents thereof will become apparent to those skilled in the art upon a reading of the specification and study of the drawings. For example, many different parameters can be associated with dynamic sensations, conditions, and effects to allow ease of specifying a particular force sensation. These parameters can be presented in the graphical interface of the present invention, including in the compound force sensation windows. Many types of different visual metaphors can be displayed in the interface tool of the present invention to allow a programmer to easily visualize changes to a force sensation and to enhance the characterization of the force sensation. Furthermore, certain terminology has been used for the purposes of descriptive clarity, and not to limit the present invention. It is therefore intended that the following appended claims include all such alterations, permutations, and equivalents as fall within the true spirit and scope of the present invention.