Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Tesla Autonomous Charger Help: Mate for rigid body motion in box
andrew_roley
Member Posts: 11 ✭✭
in Drawings
Hi, I will try to follow the "FORUM POST CHECKLIST"
However, I can't find a mate that I can use to relate my garage walls to my car that doesn't either restrict motion that is possible in real life, or allow motion that's impossible in real life (e.g. going through the wall).
Currently working as desired: car's rear end does not hit garage walls, even at narrowest point (door opening), using x limit.
car does not hit back wall of garage (using y limit).
car can have varying degrees of rotation (using rotation limit), to model real life scenario of imperfectly aligned parking.
Not working as desired: yaw rotation plus x movement, while individually permissible, if combined, result in car's front end passing through garage walls.
yaw rotation plus y movement, while individually permissible, if combined, result in car passing through garage door supports.
I've thought about modeling each wall as a separate entity to achieve this, but it seems like I'd need a separate connector on each corner of the car to interface two per wall, which seems like it would be overdefined.
Additionally, I would like to show / allow motion of the car into and out of the garage, but I don't think it's necessary for design, just a "nice to have".
I tried to share a specific version, as recommended in the checklist, but could not find an option for edit access for the public document, only copy, link document, and export rights.
Thanks in advance for any advice or help, regarding the mate connectors or otherwise!
- Use the forum search tool:
- Please be as descriptive as you can
However, I can't find a mate that I can use to relate my garage walls to my car that doesn't either restrict motion that is possible in real life, or allow motion that's impossible in real life (e.g. going through the wall).
Currently working as desired: car's rear end does not hit garage walls, even at narrowest point (door opening), using x limit.
car does not hit back wall of garage (using y limit).
car can have varying degrees of rotation (using rotation limit), to model real life scenario of imperfectly aligned parking.
Not working as desired: yaw rotation plus x movement, while individually permissible, if combined, result in car's front end passing through garage walls.
yaw rotation plus y movement, while individually permissible, if combined, result in car passing through garage door supports.
I've thought about modeling each wall as a separate entity to achieve this, but it seems like I'd need a separate connector on each corner of the car to interface two per wall, which seems like it would be overdefined.
Additionally, I would like to show / allow motion of the car into and out of the garage, but I don't think it's necessary for design, just a "nice to have".
- copy & paste the URL of a Public Document (V4 HERE)
I tried to share a specific version, as recommended in the checklist, but could not find an option for edit access for the public document, only copy, link document, and export rights.
Thanks in advance for any advice or help, regarding the mate connectors or otherwise!
0
Best Answers
-
AlexD Member Posts: 16 PRO@andrew_roley
Please, check this out. I think it is simple and does what you need.
https://cad.onshape.com/documents/55379b1fbb64d84d9f6f4f45/w/35b7465382ddf70b589a8629/e/1a20714fcc4ff5dce07832af
Alex.1 -
andrew_roley Member Posts: 11 ✭✭steve_shubin said:...
You could easily have multiple splines and multiple cars in the same assembly. Each spline could be a different shape. Each car could be on its own spline.
...
I think this would be a great way to smoothly model the car's entry and exit on various paths.
However, I think I found a simpler way using mates to meet my particular purpose (quickly and easily model extreme positions in garage). Your solution would definitely do a better job of modeling one approach of the car at a time while in motion, but that's not what I needed at this level of design.- Instead of trying to capture everything in one mate, I removed most of the limits from the existing "Car On Ground" and renamed it to BackLeft Corner. The only remaining limit was to make it no closer than 2 inches (X direction) to the garage doorway.
- I then made similar mates for each corner. The front corners were offset from the side walls by a minimum of 10 inches (observed variability), and front wall by 8 inches (minimum summon distance to front bumper).
- One of the key tricks was the order of selecting mate connectors, because it determined whether the X distance in question was from the car's reference frame or the garage's (found by accident when one side acted differently than the other).
- For the front corners, I wanted the garage's reference frame (car doesn't get closer than 10" from any point on the garage wall)
- For the rear corners, I wanted the car's reference frame, as the car's side (any part) does not get any closer than 2" to the garage door frame.
- Somewhat non-intuitively (I think), the second part you select determines the reference frame.
- Somewhat frustratingly, the "reorder items" button, although practically identical to the "flip primary axis" button, is not a single click action for a list of two items.
0
Answers
You said you want to model all positions of the car within the garage.
WATCH THE BELOW ANIMATION and see if this will work for you
If you like what you see, notice that I changed the position of the mate to the center of the back of the car and adjusted the limits accordingly —— see the screen capture at the very bottom
I used the spline to make a curved shape
I selected the curved line on the gray object to use with tangent points at the front and back of the car
I also used planar mates to keep the car flat on the ground
Using the spline, you can make whatever shape you want
1) Are you trying to find or measure the range of possible positions of the car within the garage?
OR
2) Are you trying to model the car in any position within the garage?
If you are trying to do #1, then Onshape is definitely not the best tool. You'd probably have more success with some sort of motion modeling/kinematics tool that can detect part contact as you move things around. There are an infinite number of ways that a person can move a car into a garage, and your output would be a "space" that envelopes all of the possible locations and angles of the car. Onshape is just not designed for this type of analysis.
If you are trying to do #2, then you might able to just use a "planar" mate between the bottom of the car and the garage floor. Then, you'd have to manually move the car around to see where it would fit. You can manually check for interference, but again, it's all manual, here.
Based on the title of your post, it sounds like you need to know the possible locations of the car within the garage, so that you can properly design your charging system. In this case, I think doing the full analysis of #1 would be interesting, but not needed. You should be able to use method #2 to model several different locations and create an estimate of the locations your car could be. Add some safety factor and you should be good to go.
I was trying to use #2 to get an approximate of #1, as you referred to. I was hoping with OnShape that I could do better than "manually checking for interference". That was my whole reason for setting up all the mates in the assembly, but at least there's not *much* manual effort required among all the mates. I currently have the planar mate in use, but as mentioned, it doesn't do the job fully.
@steve_shubin
Thanks for showing this as an option. I think for modeling a single approach this would work amazing. Unfortunately I need to explore the possibilities for a full design solution, but at some point I think I'll return to using this spline suggestion for show and tell.
You could easily have multiple splines and multiple cars in the same assembly. Each spline could be a different shape. Each car could be on its own spline.
So you could have one car pull into the garage using a certain approach, and then you could back that car out. You could have a 2nd car pull into the garage under a different approach, and then back that car out. You could do this numerous times, having five or six different cars — each car on its own spline and each spline a different shape, and each car a different color
Please, check this out. I think it is simple and does what you need.
https://cad.onshape.com/documents/55379b1fbb64d84d9f6f4f45/w/35b7465382ddf70b589a8629/e/1a20714fcc4ff5dce07832af
Alex.
I think this would be a great way to smoothly model the car's entry and exit on various paths.
However, I think I found a simpler way using mates to meet my particular purpose (quickly and easily model extreme positions in garage). Your solution would definitely do a better job of modeling one approach of the car at a time while in motion, but that's not what I needed at this level of design.