Replies: 2 comments 5 replies
-
I would say that was an oversight and should be fixed. I look into it further in about an hour. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Situation: I have a node owning an environment, with a
ROSEnvironmentMonitor
publishing it. There is also an rviz node running with a Tesseract Workbench subscribed to the tesseract_published_environment. If my node changes the joint states usingEnvironment::setState()
, the workbench does not reflect this change.The topic
/tesseract_published_environment
correctly shows the updated joint states, but the time stamp of thejoint_state
header has not changed, so the monitoring environment does not pick up the change. This is caused by the timestamp of the joint states being set tolast_robot_motion_time_
, which is updated by acurrent_state_monitor
, but only if it has subscribed to ajoint_state
topic.Is this by design and should I update joint states in an environment in a different way, or should this be fixed?
(BTW: This situation can be easily reproduced by adding
ros::WallDuration(10).sleep();
to thepick_and_place_example_node.cpp
, just before linePickAndPlaceExample example(env, plotter);
. This way the workbench is fully initialized before the example executes its setState() call and the example starts with the robot at all zeroes.)Beta Was this translation helpful? Give feedback.
All reactions