Skip to content

Sr viz main#171

Closed
Averyyy wants to merge 378 commits intomainfrom
sr_viz_main
Closed

Sr viz main#171
Averyyy wants to merge 378 commits intomainfrom
sr_viz_main

Conversation

@Averyyy
Copy link
Collaborator

@Averyyy Averyyy commented Apr 29, 2025

No description provided.

Hansen1030 and others added 30 commits February 15, 2025 22:22
Added Script to Convert Sensor Data to ROS ".bag" Files
Remove ibeo msg in setup_this_machine.sh
Finish klampt_visualization and mpl_visualization in GEMstack/scripts/visualization.py
@Averyyy Averyyy requested a review from krishauser as a code owner April 29, 2025 23:37
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
30 Security Hotspots
E Security Rating on New Code (required ≥ A)
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

# fit a line/plane/hyperplane in a pointcloud
# pc: np array (N,D). the pointcloud
# tol: the tolerance. default 0.01
model = RANSACRegressor(LinearRegression(), residual_threshold=tol)

Check notice

Code scanning / SonarCloud

Results that depend on random number generation should be reproducible

<!--SONAR_ISSUE_KEY:AZaD6t-GtT2dyihO3pMl-->Provide a seed for the random_state parameter. <p>See more on <a href="https://sonarcloud.io/project/issues?id=krishauser_GEMstack&issues=AZaD6t-GtT2dyihO3pMl&open=AZaD6t-GtT2dyihO3pMl&pullRequest=171">SonarQube Cloud</a></p>
target_frame = 3
# Define output plot directory
plot_dir = os.path.join("./plots", log_folder, "viz")
os.makedirs(plot_dir, exist_ok=True)

Check failure

Code scanning / SonarCloud

I/O function calls should not be vulnerable to path injection attacks

<!--SONAR_ISSUE_KEY:AZaD6uGWtT2dyihO3pOh-->Change this code to not construct the path from user-controlled data. <p>See more on <a href="https://sonarcloud.io/project/issues?id=krishauser_GEMstack&issues=AZaD6uGWtT2dyihO3pOh&open=AZaD6uGWtT2dyihO3pOh&pullRequest=171">SonarQube Cloud</a></p>

# Check if plots have been previously generated
if os.path.exists(cache_file):
with open(cache_file, "r") as f:

Check failure

Code scanning / SonarCloud

I/O function calls should not be vulnerable to path injection attacks

<!--SONAR_ISSUE_KEY:AZaD6uGWtT2dyihO3pOY-->Change this code to not construct the path from user-controlled data. <p>See more on <a href="https://sonarcloud.io/project/issues?id=krishauser_GEMstack&issues=AZaD6uGWtT2dyihO3pOY&open=AZaD6uGWtT2dyihO3pOY&pullRequest=171">SonarQube Cloud</a></p>
trajectory_data = []

# Parse behavior file
with open(behavior_file, "r") as f:

Check failure

Code scanning / SonarCloud

I/O function calls should not be vulnerable to path injection attacks

<!--SONAR_ISSUE_KEY:AZaD6uGWtT2dyihO3pOg-->Change this code to not construct the path from user-controlled data. <p>See more on <a href="https://sonarcloud.io/project/issues?id=krishauser_GEMstack&issues=AZaD6uGWtT2dyihO3pOg&open=AZaD6uGWtT2dyihO3pOg&pullRequest=171">SonarQube Cloud</a></p>

# Cache plot file paths
plot_files = {"comprehensive": plot_path}
with open(cache_file, "w") as f:

Check failure

Code scanning / SonarCloud

I/O function calls should not be vulnerable to path injection attacks

<!--SONAR_ISSUE_KEY:AZaD6uGWtT2dyihO3pOa-->Change this code to not construct the path from user-controlled data. <p>See more on <a href="https://sonarcloud.io/project/issues?id=krishauser_GEMstack&issues=AZaD6uGWtT2dyihO3pOa&open=AZaD6uGWtT2dyihO3pOa&pullRequest=171">SonarQube Cloud</a></p>

try:
if platform.system() == "Windows":
os.system(f'explorer "{full_path}"')

Check failure

Code scanning / SonarCloud

OS commands should not be vulnerable to command injection attacks

<!--SONAR_ISSUE_KEY:AZaD6uGWtT2dyihO3pOV-->Change this code to not construct the OS command from user-controlled data. <p>See more on <a href="https://sonarcloud.io/project/issues?id=krishauser_GEMstack&issues=AZaD6uGWtT2dyihO3pOV&open=AZaD6uGWtT2dyihO3pOV&pullRequest=171">SonarQube Cloud</a></p>
if platform.system() == "Windows":
os.system(f'explorer "{full_path}"')
elif platform.system() == "Linux":
os.system(f'xdg-open "{full_path}"')

Check failure

Code scanning / SonarCloud

OS commands should not be vulnerable to command injection attacks

<!--SONAR_ISSUE_KEY:AZaD6uGWtT2dyihO3pOW-->Change this code to not construct the OS command from user-controlled data. <p>See more on <a href="https://sonarcloud.io/project/issues?id=krishauser_GEMstack&issues=AZaD6uGWtT2dyihO3pOW&open=AZaD6uGWtT2dyihO3pOW&pullRequest=171">SonarQube Cloud</a></p>
elif platform.system() == "Linux":
os.system(f'xdg-open "{full_path}"')
elif platform.system() == "Darwin":
os.system(f'open "{full_path}"')

Check failure

Code scanning / SonarCloud

OS commands should not be vulnerable to command injection attacks

<!--SONAR_ISSUE_KEY:AZaD6uGWtT2dyihO3pOX-->Change this code to not construct the OS command from user-controlled data. <p>See more on <a href="https://sonarcloud.io/project/issues?id=krishauser_GEMstack&issues=AZaD6uGWtT2dyihO3pOX&open=AZaD6uGWtT2dyihO3pOX&pullRequest=171">SonarQube Cloud</a></p>
page = request.args.get("page", 1, type=int)

try:
with open(file_path, "r") as f:

Check failure

Code scanning / SonarCloud

I/O function calls should not be vulnerable to path injection attacks

<!--SONAR_ISSUE_KEY:AZaD6uGWtT2dyihO3pOb-->Change this code to not construct the path from user-controlled data. <p>See more on <a href="https://sonarcloud.io/project/issues?id=krishauser_GEMstack&issues=AZaD6uGWtT2dyihO3pOb&open=AZaD6uGWtT2dyihO3pOb&pullRequest=171">SonarQube Cloud</a></p>
</div>

<script>
const folder = "{{ log_folder|safe }}"; // Flask passes the folder variable

Check failure

Code scanning / SonarCloud

Endpoints should not be vulnerable to reflected cross-site scripting (XSS) attacks

<!--SONAR_ISSUE_KEY:AZaD6uFrtT2dyihO3pOF-->Change this code to not reflect user-controlled data. <p>See more on <a href="https://sonarcloud.io/project/issues?id=krishauser_GEMstack&issues=AZaD6uFrtT2dyihO3pOF&open=AZaD6uFrtT2dyihO3pOF&pullRequest=171">SonarQube Cloud</a></p>
@krishauser
Copy link
Owner

This is to the wrong branch. It will need to go into s2025

@krishauser krishauser closed this May 5, 2025
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

Successfully merging this pull request may close these issues.