-
Notifications
You must be signed in to change notification settings - Fork 45
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
ROS topic issues (syncing/hz) #19
Comments
What Wifi version are you using? Do you ping it while using the dog? What is the average delay in your network? (in ms) |
Hi @delenius , I was also facing the same problem, and here's how I fixed it. Some general information:
The reason is that ROS_Clock is not set in First, open def create_ros2_clock():
graph_path = f"/ROS_Clock"
og.Controller.edit(
{"graph_path": graph_path,
"evaluator_name": "execution",
"pipeline_stage": og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION,},
{
og.Controller.Keys.CREATE_NODES: [
("ReadSimTime", "omni.isaac.core_nodes.IsaacReadSimulationTime"),
("Context", "omni.isaac.ros2_bridge.ROS2Context"),
("PublishClock", "omni.isaac.ros2_bridge.ROS2PublishClock"),
("OnPlaybackTick", "omni.graph.action.OnPlaybackTick"),
],
og.Controller.Keys.CONNECT: [
("OnPlaybackTick.outputs:tick", "PublishClock.inputs:execIn"),
("ReadSimTime.outputs:simulationTime", "PublishClock.inputs:timeStamp"),
("Context.outputs:context", "PublishClock.inputs:context"),
],
og.Controller.Keys.SET_VALUES: [
("PublishClock.inputs:topicName", "/clock"),
("Context.inputs:domain_id", 1),
],
},
) Second, go back to from omnigraph import create_front_cam_omnigraph, create_ros2_clock and add Third, open point_cloud.header.stamp = self.get_clock().now().to_msg() under |
Hello @richard98hess444 ! Thanks for your contribution! Could you let me know how you ran this repo on 4.1? In my case, I face freezing and time in simulation is very slow. |
Hi @abizovnuralem ! |
He @richard98hess444 ! Currently, this repo only supports 4.0 version, if you use 4.1 it will be laggy and slow. This is a known issue with 4.1, your laptop is powerful enough to do real-time. refer to #26 #30 |
Just updated the repo and fixed the speed issue. |
The command
ros2 topic hz /robot0/front_cam/rgb
does not return any info (even though I am getting images through it).All the other topics report some data.
I am not able to sync the
/robot0/front_cam/rgb
and/robot0/point_cloud2
topics usingmessage_filters.ApproximateTimeSynchronizer
(or plainTimeSynchronizer
). I can sync all the other topics. Any idea why?/robot0/point_cloud2
has timestamps of 0 for all messages, like this:(perhaps this is why no hz can be computed).
Note: I am using
RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
as it solved some issues I had (the default dds did not work across different user accounts).The text was updated successfully, but these errors were encountered: