Skip to content
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

two questions: 1. how to set the destination for ego vehicle? 2. how to print the variable? #404

Closed
caixxuan opened this issue Dec 25, 2023 · 10 comments

Comments

@caixxuan
Copy link

  1. how to set the destination for ego vehicle?
    I did not find the file to set of destination carla ego vehicle. how to set it?
  2. how to print the variable?
    I want to monitor some variables when running simulation, but it seems did not work using 'print(xx)'. are there some other ways to realize?
@haixuanTao
Copy link
Collaborator

In order to change the goal destination you should look at the carla_gps_op.py and change it there.

in order to print anything you should us:
dora logs <DATAFLOW_ID>

To see it printing there.

check the flush=true option in print to see in real time

@caixxuan
Copy link
Author

Screenshot from 2023-12-27 22-02-41
if set the NUM_WAYPOINTS_AHEAD from 120 to 145,something wrong happened, the ego vehicle cannot work properly, how to fix?

@caixxuan
Copy link
Author

In order to change the goal destination you should look at the carla_gps_op.py and change it there.

in order to print anything you should us: dora logs <DATAFLOW_ID>

To see it printing there.

check the flush=true option in print to see in real time

sorry, I am not clear: 'dora logs <DATAFLOW_ID>' should write to the python script? and where to find '<DATAFLOW_ID>' ? flush=true where to set?

@caixxuan
Copy link
Author

In order to change the goal destination you should look at the carla_gps_op.py and change it there.
in order to print anything you should us: dora logs <DATAFLOW_ID>
To see it printing there.
check the flush=true option in print to see in real time

sorry, I am not clear: 'dora logs <DATAFLOW_ID>' should write to the python script? and where to find '<DATAFLOW_ID>' ? flush=true where to set?

is there any example code?

@haixuanTao
Copy link
Collaborator

Screenshot from 2023-12-27 22-02-41

if set the NUM_WAYPOINTS_AHEAD from 120 to 145,something wrong happened, the ego vehicle cannot work properly, how to fix?

I wouldn't recommend changing the number of waypoint ahead. You should probably revert back.

However, if you really want to you should change make sure that every message using the waypoints are reshaping the data in the right shape with this newly updated number of waypoints.

@haixuanTao
Copy link
Collaborator

haixuanTao commented Dec 28, 2023

In order to change the goal destination you should look at the carla_gps_op.py and change it there.

in order to print anything you should us: dora logs <DATAFLOW_ID>

To see it printing there.

check the flush=true option in print to see in real time

sorry, I am not clear: 'dora logs <DATAFLOW_ID>' should write to the python script? and where to find '<DATAFLOW_ID>' ? flush=true where to set?

You should type this in your terminal:

Dora logs c95d118b-cded-4531-a0e4-cd85b7c3916c carla_gps_op

In your Python script make sure to use:

print("test", flush=True)

@caixxuan
Copy link
Author

caixxuan commented Jan 2, 2024

In order to change the goal destination you should look at the carla_gps_op.py and change it there.

in order to print anything you should us: dora logs <DATAFLOW_ID>

To see it printing there.

check the flush=true option in print to see in real time

sorry, I am not clear: 'dora logs <DATAFLOW_ID>' should write to the python script? and where to find '<DATAFLOW_ID>' ? flush=true where to set?

You should type this in your terminal:

Dora logs c95d118b-cded-4531-a0e4-cd85b7c3916c carla_gps_op

In your Python script make sure to use:

print("test", flush=True)

it seems only work when fail:
description should only be set when status_code is set to StatusCode.ERROR

@caixxuan
Copy link
Author

caixxuan commented Jan 2, 2024

In order to change the goal destination you should look at the carla_gps_op.py and change it there.

in order to print anything you should us: dora logs <DATAFLOW_ID>

To see it printing there.

check the flush=true option in print to see in real time

sorry, I am not clear: 'dora logs <DATAFLOW_ID>' should write to the python script? and where to find '<DATAFLOW_ID>' ? flush=true where to set?

You should type this in your terminal:

Dora logs c95d118b-cded-4531-a0e4-cd85b7c3916c carla_gps_op

In your Python script make sure to use:

print("test", flush=True)

And the print is not executed in real time

@haixuanTao
Copy link
Collaborator

So the print of logs is not in real time and you will have to open and close it to take into account the latest logs. We're working on a better logging system but as of now, this is how we do logging.

@haixuanTao
Copy link
Collaborator

You can now check the logs in the out folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants