-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camera Following Gripper #7
Comments
After researching I switched to getting arm position data from |
While debugging gazebo, I realied that https://github.com/hcrlab/stretch_web_interface/blob/gazebo_sim/robot/ros_connect.js#L284 |
Excellent @kaviMD! I think you were on the right track with joint_state or robot_state.. I wonder why they were not being published. Did you try something like |
This is fully functional and pushed now. Per our meeting It turns out that to access transforms from tf in JS via roslib, you need to use a special TFClient, and have I think this is ready to merge into the main branch if we want to. Let me know if there is anything I can do to help debug it |
@kaviMD I just tested this on the real robot and it works very well and it is fun to use ;) |
Currently the 'look' actions are logged automatically but I think for when the camera is following the gripper we'll want to only log the start and end rather than continuously during the gripper following loop. |
With the update loop move from front end to back end in Issue #30, updating the logging should be relatively easy, if not handled automatically. What branch was that update pushed to? |
Ah yes, I updated that too, it just logs the start and the end ;) I just pushed. They're all in the upstream branch b/c I'm still not done testing those merges but issues from previous merges started coming up then. Will move to master soon. |
One thing I noticed while testing is that the camera following stops during continuous motions and catches up once the mouse is released--not sure why this is happening since they're in separate threads, but noting down here what I observed. Perhaps there is an obvious reason/fix. |
I have a much better understanding of how the whole interface works and put together some prototype code for the camera to look at the gripper position. As of right now I have a toggle box to enable the camera follow mode that pings the backend every 200ms (similar to how we are doing continuous actions).
In order to test my code I need something to be publishing joint info in ROS, so have I switched gears a bit and have been trying to get the PickNik stretch gazebo simulation up and running. I'm happy to make a new github thread and track my progress on that too if it would be helpful.
The text was updated successfully, but these errors were encountered: