RobotModel.to_data()
See original GitHub issueFeature Request
As a end-user, I want to serialize a RobotModel that I created programatically so that I can load it back later from file.
Details
I have a lot of trouble trying to pickle RobotModel
, either using pickle
or jsonPickle
with no success. The decoded object doesn’t function anymore.
I created a little script to check if my returned object still works:
def LoadToolAndCheck(json_path):
with open(json_path, 'r') as f:
json_str = f.read()
tool = jsonpickle.decode(json_str, keys=True)
print (tool.__class__)
for l in tool.links:
print (l.__class__, l)
One specific scenario is when I create this RobotModel
object in Rhino GH, and then I deserialize it in CPython, it will not function anymore.
Describe the solution you’d like
I want a way to serialize RobotModel objects, either by jsonpickle
or pickle
or a ‘to_data’ type of method. I believe for the consistency with other compas object, a to_data()
method is most appropriate.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Robot - Webots documentation
The wb_robot_get_urdf function allows a robot controller to export URDF, an XML format for representing a robot model. A prefix for URDF link...
Read more >moveit/moveit_config_data.h at master · ros-planning ... - GitHub
const std::string& getComment() const. {. return comment_;. }; ... Gazebo URDF robot model string ... @return pointer to data in datastructure.
Read more >moveit_setup_assistant::MoveItConfigData Class Reference
robot_model::RobotModelConstPtr, getRobotModel (). Provide a shared kinematic model ... URDF robot model. ... Returns: pointer to data in datastructure.
Read more >Mitsubishi Industrial Robot - CR750/CR751 Series Controller
protection of the data, press the function key corresponding to "DATA". ... The input signal is confirmed with a robot status variable (M_In(),...
Read more >eV+ Language Reference Guide
ATTACH(). ;Reattach the robot. The following instruction sequence must be used ... exclusive access by an application program to data that is also...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yes, it should have them. I will work on this soon in the short term.
sorry forgot about this. in my opinion,
RobotModel
should definitely havefrom/to_data
methods… if @gonzalocasas has the time i would prefer deferring this to him 😃