Closed laibazahid26 closed 1 year ago
There is no specific class to interact with the move group ROS interface and provide some extra functionality. You should just the "raw" topics/services/action interfaces.
Any ideas on how I can go about this problem? How can I publish a 'plan' ( in the form of a .txt file) on the topic responsible for executing the trajectory via roslibjs? The plan that is generated by the move group interface has a very cumbersome format. It is essentially an array of thousands of numbers. How can I input this in a 'message' format in roslibjs?
That sound like an issue the internet should have figured out. You should probably save the data as a json/yaml. And then i guess there are many solutions to get them into an JS object. But that is outside the scope of this library and so my support.
But why do you save the plan from python? Why not execute it there as well?
The trajectory needs to be executed when a button is clicked on the browser roslibjs GUI.
Maybe easier to create a topic, could be even empty msg, from the web interface to the python app. Which then executes the plan.
For this, the python node needs to keep running. Trying to make the python node and the GUI independent of each other. Idea was to keep the python node just for trajectory planning.
Then this it the solution to go in my opinion https://github.com/RobotWebTools/roslibjs/issues/599#issuecomment-1458309350
I created a python node in which I am generating a trajectory for a Robotic Arm (using python move group interface) for going from point A to point B. I generated this trajectory via:
waypoints is a list of coordinates for the robot end effector to go.
I saved this 'plan', returned from the above code, as a text file.
Now I want to execute this plan using roslibjs. I cannot find any syntax help in roslibjs documentation GitHub.
I did half of the thing (the generation of trajectory) in the python ros node because I couldn't find how I can do this via roslibjs.
Is there any way of using the move the group interface in roslibjs?