I want to extract the value for the joints j1, j2 ... j6 drom this file in order to…
- User
I want to extract the value for the joints j1, j2 ... j6 drom this file in order to create an array in mathematica to be used. the txt file is as follows: Signal Recording: Id=22b8c40ee01b4636aebd71ea15a73afe (started 13:58:15 and finished 13:58:28)
Time Position\X Position In Current Wobj Position\Y Position In Current Wobj Position\Z Position In Current Wobj Orientation\Q1 In Current Wobj Orientation\Q2 In Current Wobj Orientation\Q3 In Current Wobj Orientation\Q4 In Current Wobj Speed In Current Wobj Linear Acceleration In World Robot Configuration\cf1 Robot Configuration\cf4 Robot Configuration\cf6 Robot Configuration\cfx J1 J2 J3 J4 J5 J6 0 3485.41879653931 1205.14094829559 1694.35477256775 0.0999432727694511 -0.0999432429671288 -0.700008034706116 -0.70000821352005 0 0 0 0 -1 1 -30.0893089733186 -33.1517404009097 23.3992872379055 -79.3166440764728 -29.7075731157011 85.5868806779495 0.024 3485.41879653931 1205.14094829559 1694.35477256775 0.0999432727694511 -0.0999432429671288 -0.700008034706116 -0.70000821352005 0 0 0 0 -1 1 -30.0893089733186 -33.1517404009097 23.3992872379055 -79.3166440764728 -29.7075731157011 85.5868806779495
- Assistant
To extract the values for the joints J1 to J6 from your text file and create an array in Mathematica, you can follow these steps:
- Import the Data: Read the contents of your file into Mathematica as lines of text.
- Filter Data Lines: Remove any header or non-data lines.
- Parse the Numerical Data: Split each data line into individual elements and convert them to numbers.